首页 > 代码库 > DataTable - Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints

DataTable - Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints

solution1.Tick the primary key  

  1.right click on the Id of the entity in dataset schema.

  2.Edit Key

  3.Tick the Primary Key