コード例 #1
0
 public void AddTeachers(Teachers teachersToAdd)
 {
     this.Context.Teachers.Add(teachersToAdd);
     this.SaveChanges();
 }
コード例 #2
0
 public void RemoveTeachers(Teachers remToTeachers)
 {
     this.Context.Teachers.Remove(remToTeachers);
     this.SaveChanges();
 }
コード例 #3
0
 public List <Teachers> FindByTeachersName(Teachers teachers)
 {
     return(this.Context.Teachers.Where(p => p.Teachers_name == teachers.Teachers_name).ToList());
 }