标签: entity-framework-4 entity-relationship
我正在使用EF,当我这样做时:
foreach (var reg in detail.Regs) { this.db.Regs.DeleteObject(reg); }
我明白了:
Collection was modified; enumeration operation may not execute.
我在这里做错了什么???
答案 0 :(得分:80)