internal Student( IRepository<IndividualEntity> individualRepo, IRepository<StudentEntity> studentRepo) { _individualRepo = individualRepo; _studentRepo = studentRepo; HighSchool = new School(); }
internal void LoadData( IndividualEntity individual, StudentEntity student) { Id = student.Id; LastName = individual.LastName; FirstName = individual.FirstName; MiddleInitial = GetMiddleInitial(individual.MiddleName); Suffix = individual.Suffix; DateOfBirth = individual.DateOfBirth; HighSchool = new School { Name = student.HighSchoolName, City = student.HighSchoolCity, State = student.HighSchoolState, }; }