简体   繁体   中英

How to remove primary key from strongly typed Dataset

How can I remove primary key or foreign key from strongly typed data-set in designer view ? I tried followings without success,

  • Change unique key attribute to false
  • Delete dataset and add it again

I am getting duplicate values for ID so it's intended but how can I stop this annoying error ?

在此处输入图片说明

在此处输入图片说明

If i preview the data there is no nulls being returned so it's just duplicate value i think..

找到它,右键单击该列,然后单击每个列的“删除键”。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM