插入时:无法添加具有已在使用中的键的实体 [英] ON INSERT: Cannot add an entity with a key that is already in use
本文介绍了插入时:无法添加具有已在使用中的键的实体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我没有任何代码,上面的错误会在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.
推荐答案
这篇关于插入时:无法添加具有已在使用中的键的实体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文