I have the following models:
我有以下模型:
public class Course
{
public int Id { get; set; }
public string Name { get; set; }
}
public class Course_TutionCenter
{
public int Id { get; set; }
public int CourseId { get; set; }
public int TutionCenterId { get; set; }
[ForeignKey("CourseId")]
public virtual Course Course { get; set; }
[ForeignKey("TutionCenterId")]
public virtual TutionCenter TutionCenter { get; set; }
}
public class CourseStudent
{
public int Id { get; set; }
public int Course_TutionCenter_Id { get; set; }
[ForeignKey("Course_TutionCenter_Id")]
public virtual Course_TutionCenter Course_TutionCenter { get; set; }
}
public