How to eagerly load a many to many relationship with the entity framework code first?
I'll give the most basic example that I can think of for the purpose of clarity. Lets say that I have two entities of the following form: public class Student { public int Id {get;set} public string FullName {get;set;} public virtual ICollection<Course> Courses {get;set;} } public class Courses { public int Id {get;set;} public string FullName {get;set;} public virtual ICollection<Student> Students {get;set;} } Those two entities map to three tables, the third one being a table for the joins. When I query the Students like this var allStudents = context.Students; and then traverse the results