示例#1
0
 public int update_teacher(tbl_teacher_presonal_information tb)
 {
     db.Entry(tb).State = System.Data.Entity.EntityState.Modified;
     return(db.SaveChanges());
 }
示例#2
0
        public tbl_teacher_presonal_information find_teacher(string code_national_teacher)
        {
            tbl_teacher_presonal_information teacher = db.tbl_teacher_presonal_information.Where(c => c.code_national_teacher == code_national_teacher).SingleOrDefault();

            return(teacher);
        }
示例#3
0
 public int insert_teacher(tbl_teacher_presonal_information tb)
 {
     db.tbl_teacher_presonal_information.Add(tb);
     return(db.SaveChanges());
 }
示例#4
0
 public int delete_teacher(tbl_teacher_presonal_information tb)
 {
     db.tbl_teacher_presonal_information.Remove(tb);
     return(db.SaveChanges());
 }