The instance of entity type "tb_Inventory" cannot be tracked because another instance with the same key value for {'isid'} is already being tracked
原因
- EF更新的对象列表存在重复的实体对象;
- 实体对象列表是通过Join表获取的,在一对多的情况下导致ToList后出现重复的实体。
版权声明:本文为开发框架文库发布内容,转载请附上原文出处连接
NewDoc C/S框架网