public void DeleteRelation(Teach_Course teach_Course)
 {
     if (teach_Course == null)
     {
         throw new ArgumentNullException(nameof(teach_Course));
     }
     //判断TeacherId和CourseId是否存在
     //外键依赖自动判断
     _context.Teach_Courses.Remove(teach_Course);
 }
 public void UpdateRelation(Teach_Course teach_Course)
 {
     //_context.Entry(teach_Course).State = EntityState.Modified;
 }