我有学生的模特课
public class student
{
// here I have a collection of subjects, for which I don't want to use foreign key
public int Id{ get; set; }
public virtual Collection<Course> Course { get; set; }
}
我有一门课程
public class course
{
public int Id{ get; set; }
public int studentId{ get; set; }
public virtual students student{ get; set; }
}
当我通过使用存储库模式获取学生课程中的学生数据时,问题就出现了问题
null