public DataTable MakeDataTable(){ DataTable myTable; DataRow myNewRow; // Create a new DataTable. myTable = new DataTable("My Table"); // Create DataColumn objects of data types. DataColumn colString = new DataColumn("StringCol"); colString.DataType = System.Type.GetType("System.String"); myTable.Columns.Add(colString); DataColumn colInt32 = new DataColumn("Int32Col"); colInt32.DataType = System.Type.GetType("System.Int32"); myTable.Columns.Add(colInt32); DataColumn colBool
C# DataTable Column DataType 对应 数据库
最新推荐文章于 2022-03-13 13:32:10 发布