Example #1
0
 public void GetTypeCalendar()
 {
     if (TypeCalendarID > 0)
     {
         using (managerteacher db = new managerteacher())
         {
             this.TypeCalendar_Name = db.TypeCalendars.Find(this.TypeCalendarID) != null?
                                      db.TypeCalendars.Find(this.TypeCalendarID).TypeName : string.Empty;
         }
     }
 }
Example #2
0
 public void GetWork()
 {
     if (WorkID > 0)
     {
         using (managerteacher db = new managerteacher())
         {
             this.Work_Name = db.Works.Find(this.WorkID) != null?
                              db.Works.Find(this.WorkID).Name_Work : string.Empty;
         }
     }
 }
Example #3
0
 public void GetTeacher()
 {
     if (TeacherID > 0)
     {
         using (managerteacher db = new managerteacher())
         {
             this.Teacher_Name = db.Teachers.Find(this.TeacherID) != null?
                                 db.Teachers.Find(this.TeacherID).Name_Teacher : string.Empty;
         }
     }
 }
Example #4
0
 public void GetScience()
 {
     if (ScienceID > 0)
     {
         using (managerteacher db = new managerteacher())
         {
             this.ScienceName = db.Sciences.Find(this.ScienceID) != null?
                                db.Sciences.Find(this.ScienceID).Name : string.Empty;
         }
     }
 }
Example #5
0
 public void GetClass()
 {
     if (ClassID > 0)
     {
         using (managerteacher db = new managerteacher())
         {
             this.ClassName = db.Classes.Find(this.ClassID) != null?
                              db.Classes.Find(this.ClassID).Name : string.Empty;
         }
     }
 }
Example #6
0
 public StudentDao()
 {
     db = new managerteacher();
 }
Example #7
0
 public TeacherDao()
 {
     db = new managerteacher();
 }
Example #8
0
 public WorkDao()
 {
     db = new managerteacher();
 }
Example #9
0
 public ScienseDao()
 {
     db = new managerteacher();
 }
 public TypeCalendarDao()
 {
     db = new managerteacher();
 }
Example #11
0
 public CalendarWorkingDao()
 {
     db = new managerteacher();
 }
Example #12
0
 public ClassDao()
 {
     db = new managerteacher();
 }