コード例 #1
0
 internal Student(
     IRepository<IndividualEntity> individualRepo,
     IRepository<StudentEntity> studentRepo)
 {
     _individualRepo = individualRepo;
     _studentRepo = studentRepo;
     HighSchool = new School();
 }
コード例 #2
0
        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,
                    };
        }