public partial class Student { public Student() { Courses = new HashSet<Course>(); } public int ID; public string Name; public virtual ICollection<Course> Courses { get; set; } }
public partial class Student { public Student() { Courses = new HashSet<Course>(); } public int ID; public string Name; public virtual IList<Course> Courses { get; set; } }
IList<T>
HashSet<T>
List<T>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)