示例#1
0
 public async Task Add(Student student)
 {
     newContext.Student.Add(student);
     await newContext.SaveChangesAsync();
 }
示例#2
0
 public async Task Add(Course course)
 {
     newContext.Add(course);
     await newContext.SaveChangesAsync();
 }
示例#3
0
 public async Task Add(Gender gender)
 {
     newContext.Gender.Add(gender);
     await newContext.SaveChangesAsync();
 }
示例#4
0
 public async Task Add(Enrollment enrollment)
 {
     newContext.Enrollment.Add(enrollment);
     await newContext.SaveChangesAsync();
 }