cannot be tracked because another instance with the key value '{ID: 31}' is already being tracked. When attaching existing entities, ensure that only one entity instance with a given key value is attached
在事务中使用DC.UpdateEntity(实体类);报这个错误
查看更多
这种情况大部分出现在你在其他地方读取过这行数据了,比如你Include的某个表关联了这行数据。
发布 问题
分享 好友
手机 浏览
回到 顶部