public class Student { public int ID { get; set; } public string FirstName { get; set; } public string LastName { get; set; } public DateTime EnrollmentDate { get; set; } public IList<Enrollment> Enrollments { get; set; } public bool IsNew { get { return this.ID == default (int); } } public Student { this.Enrollments= new IList<Enrollment>(); } }
this.Enrollments = new List<Enrollment>();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)