示例#1
0
        public void updateStudentCurrentStatus(StudentCurrentStatus StudentCurrentStatus)
        {
            SMSContext sMSContext = new SMSContext();

            sMSContext.Entry(StudentCurrentStatus).State = System.Data.Entity.EntityState.Modified;
            sMSContext.SaveChanges();
        }
示例#2
0
        public void saveStudentCurrentStatus(StudentCurrentStatus StudentCurrentStatus)
        {
            SMSContext sMSContext = new SMSContext();

            sMSContext.StudentCurrentStatuses.Add(StudentCurrentStatus);
            sMSContext.SaveChanges();
        }