我們有以下兩張表,其中收集類型是最適合這種情況的,我們如何選擇其他情況。哪種集合類型最適合在實體框架中創建poco類?
public class Employee{
public int Id {get;Set;}
public string Name{get;set;}
}
public class Comapany{
public int Id {get;set;}
public string Name {get;set;}
public virtual ICollection<Employee>employees{get;set;} or
public virtual list<Employee>employees{get;set;}
}