1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
| #region
|
| using System.Data;
|
| #endregion
|
| namespace CSFrameworkV5.WCFContract
| {
| /// <summary>
| /// 服务端公共类库
| /// </summary>
| public class ServerLibrary
| {
| /// <summary>
| /// 数据表转换为DataSet
| /// </summary>
| /// <param name="table">DataTable</param>
| /// <returns></returns>
| public static DataSet TableToDataSet(DataTable table)
| {
| if (table == null) return new DataSet();
|
| if (table.DataSet != null) return table.DataSet;
|
| var ds = new DataSet();
| ds.Tables.Add(table);
| return ds;
| }
|
| public static void TestAssembly()
| {
| }
| }
| }
|
|