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; } } }
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; } } }
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; } } }
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; } } }
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; } } }
public StudentDao() { db = new managerteacher(); }
public TeacherDao() { db = new managerteacher(); }
public WorkDao() { db = new managerteacher(); }
public ScienseDao() { db = new managerteacher(); }
public TypeCalendarDao() { db = new managerteacher(); }
public CalendarWorkingDao() { db = new managerteacher(); }
public ClassDao() { db = new managerteacher(); }