插入时:无法添加具有已在使用中的键的实体

问题描述:

我没有任何代码,上面的错误会在INSERT上继续提示. DBML刷新了!

I have no code behind and the above error keep prompting on INSERT. The DBML is refresh!

异常详细信息:System.Data.Linq.DuplicateKeyException:无法添加具有已在使用的键的实体.

Exception Details: System.Data.Linq.DuplicateKeyException: Cannot add an entity with a key that is already in use.