Here is my class :
public class Course : BaseEntity
{
public string Name { get; set; }
public string Description { get; set; }
public virtual int? TeacherId { get; set; }
public virtual Teacher Teacher { get; set; }
public virtual IList<CourseStudent> CourseStudents { get; set; }
}
},
public class CourseStudent : BaseEntity
{
public virtual int CourseId { get; set; }
public virtual Course Course { get; set; }
public virtual int StudentId { get; set; }
public virtual Student Student { get; set; }
}
}
I defined COurse in Breeze Controler and this is show on my view, the name of course, teacher and Description but hot to show students for specific course.