예제 #1
0
 public int Insert(Course course)
 {
     _db.Course.Add(course);
     return(_db.SaveChanges());
 }
 public int Insert(Grade grades)
 {
     _db.Grade.Add(grades);
     return(_db.SaveChanges());
 }
예제 #3
0
 public int Insert(Teacher teacher)
 {
     _db.Teacher.Add(teacher);
     return(_db.SaveChanges());
 }
예제 #4
0
 public int Insert(Subject subjects)
 {
     _db.Subject.Add(subjects);
     return(_db.SaveChanges());
 }
 public int Insert(RelationshipsTeacherSubject relationships)
 {
     _db.RelationshipsTeacherSubject.Add(relationships);
     return(_db.SaveChanges());
 }
 public int Insert(Student student)
 {
     _db.Student.Add(student);
     return(_db.SaveChanges());
 }