Пример #1
0
 public void UpdateStudentPresence(StudentPresence studentPresnece)
 {
     using (EntityModel em = new EntityModel())
     {
         em.Entry(studentPresnece).State = System.Data.Entity.EntityState.Modified;
         em.SaveChanges();
     }
 }
Пример #2
0
 public void InsertStudentPresence(StudentPresence newStudentPresnece)
 {
     using (EntityModel em = new EntityModel())
     {
         em.StudentPresence.Add(newStudentPresnece);
         em.SaveChanges();
     }
 }
Пример #3
0
 public void DeleteStudentPresense(StudentPresence studentPresence)
 {
     using (EntityModel em = new EntityModel())
     {
         em.StudentPresence.Remove(studentPresence);
         em.SaveChanges();
     }
 }
Пример #4
0
        public async Task <StudentPresence> FindStudentPresneceAsync(long studentPresenceID)
        {
            StudentPresence studentPresence = null;

            using (EntityModel em = new EntityModel())
            {
                studentPresence = await em.StudentPresence.FindAsync(studentPresenceID);
            }
            return(studentPresence);
        }
Пример #5
0
        public StudentPresence FindStudentPresnece(long studentPresenceID)
        {
            StudentPresence studentPresence = null;

            using (EntityModel em = new EntityModel())
            {
                studentPresence = em.StudentPresence.Find(studentPresenceID);
            }
            return(studentPresence);
        }
 public void UpdateStudentPresence(StudentPresence studentPresnece)
 {
     _studentPresenceDAO.UpdateStudentPresence(studentPresnece);
 }
 public void InsertStudentPresence(StudentPresence newStudentPresnece)
 {
     _studentPresenceDAO.InsertStudentPresence(newStudentPresnece);
 }
 public void DeleteStudentPresense(StudentPresence studentPresence)
 {
     _studentPresenceDAO.DeleteStudentPresense(studentPresence);
 }