コード例 #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);
        }
コード例 #6
0
 public void UpdateStudentPresence(StudentPresence studentPresnece)
 {
     _studentPresenceDAO.UpdateStudentPresence(studentPresnece);
 }
コード例 #7
0
 public void InsertStudentPresence(StudentPresence newStudentPresnece)
 {
     _studentPresenceDAO.InsertStudentPresence(newStudentPresnece);
 }
コード例 #8
0
 public void DeleteStudentPresense(StudentPresence studentPresence)
 {
     _studentPresenceDAO.DeleteStudentPresense(studentPresence);
 }