Home > Net >  C # database on the column
C # database on the column

Time:11-10

The database has on the column of

In the DataSet data table line increase
Each row to add data
To the increase of column to add data to automatically update the database error
Don't give the increase of column to add data errors is the column value cannot be null

How to solve this problem?

CodePudding user response:

Design of the database table, on the list of data types can be designed for int, column attributes, logo specification - & gt; Is that incremental, identify seeds are 1

CodePudding user response:

When on the columns in the insert does not need to set a value, will be set automatically,

CodePudding user response:

For a long time without the dataset,

Two schemes,
1 the first column of the datatable (subscript column) directly deleted, estimation can be added,
2 if you don't delete, so I suspect that you set up a datatable first listed as int, try to change to the int?
Then don't give him the assignment,
  •  Tags:  
  • C#
  • Related