コード例 #1
0
ファイル: TeacherService.cs プロジェクト: dansalan/DCFIv3
 public List<TeacherChildrenBDO> ToChildrenBDO(List<TeacherChildren> tc)
 {
     List<TeacherChildrenBDO> tcbdoList = new List<TeacherChildrenBDO>();
     foreach (TeacherChildren t in tc)
     {
         TeacherChildrenBDO tbdo = new TeacherChildrenBDO();
         TranslateTeacherChildrenToTeacherChildrenBDO(t, tbdo);
         tcbdoList.Add(tbdo);
     }
     return tcbdoList;
 }
コード例 #2
0
ファイル: TeacherService.cs プロジェクト: dansalan/DCFIv5
 public void TranslateTeacherChildrenToTeacherChildrenBDO(TeacherChildren tc, TeacherChildrenBDO tcbdo)
 {
     tcbdo.ChildId = tc.ChildId;
     tcbdo.DOB = tc.DOB;
     tcbdo.FirstName = tc.FirstName;
     tcbdo.LastName = tc.LastName;
     tcbdo.MiddleName = tc.MiddleName;
     tcbdo.TeacherId = tc.TeacherId;
 }
コード例 #3
0
ファイル: TeacherDAO.cs プロジェクト: dansalan/DCFIv5
 private List<TeacherChildrenBDO> ToChildrenBDOList(ICollection<TeacherChildren> tcl)
 {
     List<TeacherChildrenBDO> tcList = new List<TeacherChildrenBDO>();
     foreach (TeacherChildren tc in tcl)
     {
         TeacherChildrenBDO tchild = new TeacherChildrenBDO();
         ConvertTeacherChildrenToTeacherChildrenBDO(tc, tchild);
         tcList.Add(tchild);
     }
     return tcList;
 }
コード例 #4
0
ファイル: TeacherDAO.cs プロジェクト: dansalan/DCFIv5
 private void ConvertTeacherChildrenToTeacherChildrenBDO(TeacherChildren tc, TeacherChildrenBDO t)
 {
     t.ChildId = tc.ChildId;
     t.DOB = (DateTime)tc.DOB;
     t.FirstName = tc.FirstName;
     t.LastName = tc.LastName;
     t.MiddleName = tc.MiddleName;
     t.TeacherId = tc.TeacherId;
 }
コード例 #5
0
ファイル: TeacherDAO.cs プロジェクト: dansalan/DCFIv5
 private void ConvertTeacherChildrenBDOToTeacherChildren(TeacherChildrenBDO tc, TeacherChildren t, string teacherId)
 {
     t.ChildId = tc.ChildId;
     t.DOB = tc.DOB;
     t.FirstName = tc.FirstName;
     t.LastName = tc.LastName;
     t.MiddleName = tc.MiddleName;
     t.TeacherId = teacherId;
 }