我们有以下两张表,其中收集类型是最适合这种情况的,我们如何选择其他情况。哪种集合类型最适合在实体框架中创建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;}
}