DataTable

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

  

原文地址:https://www.cnblogs.com/jinxinhelloworld/p/3709777.html