创建基础DataTable - CreateBasicDataTable
2017-02-21 17:52:17 访问(1588) 赞(0) 踩(0)
/// <summary>
///
/// </summary>
public readonly static Type typeInt32 = typeof(int);
/// <summary>
/// 创建 DataTable
/// </summary>
/// <returns></returns>
public static DataTable CreateBasicDataTable()
{
DataTable theResult = new DataTable();
theResult.Columns.Add("ID", typeInt32);
theResult.Columns.Add("TheName");
return theResult;
}
标签:
创建基础DataTable - CreateBasicDataTable 


上一条:
下一条:
相关评论
发表评论