How to add data to the identity column to use C #. I am using SQL Compact Server.
Can you try to do something like that?
Private Zero AddAutoIncrementColumn () {DataColumn column = New DataColumn (); Column.DataType = System.Type.GetType ("System.Int32"); Column.AutoIncrement = true; Column.AutoIncrementSeed = 1000; Column.AutoIncrementStep = 10; // Add columns to a new datatyal table of data table = new datatable ("table"); Table.Columns.Add (column); }
Comments
Post a Comment