风轻云淡

-------生活没有抱怨,只有自己的不努力,当才华撑不起梦想与野心,不断学习是你唯一的选择。没有伞的孩子必须努力奔跑...

导航

2020年5月28日 #

Attaching an entity of type 'xxx' failed because another entity of the same type already has the same primary key value

摘要: Attaching an entity of type 'xxx' failed because another entity of the same type already has the same primary key value. This can happen when using th 阅读全文

posted @ 2020-05-28 13:40 淡然→笑 阅读(1793) 评论(0) 推荐(0) 编辑

EF保存数据报错:An entity object cannot be referenced by multiple instances of IEntityChangeTracker.

摘要: EF保存关联表报错:An entity object cannot be referenced by multiple instances of IEntityChangeTracker. 字面理解就是一个实例对象不能被多个IEntityChangeTracker实例对象引用 因为使用了Autofa 阅读全文

posted @ 2020-05-28 10:51 淡然→笑 阅读(296) 评论(0) 推荐(0) 编辑