Entity Framework 4.1+ many-to-many relationships change tracking

前端 未结 2 1074
盖世英雄少女心
盖世英雄少女心 2020-11-28 04:08

How can I detect changes of ICollection<> properties (many-to-many relationships)?

public class Company
{
    ...

    public virtual ICollection

        
2条回答
  •  盖世英雄少女心
    2020-11-28 04:41

    I cant give you the exact code for your situation, but I can tell you your situation will be simplified ten fold by having a joiner table inbetween Employees and Company just to break up the many to many relationship.

提交回复
热议问题