Here is my query, using EntityFramework 6.0
var x = context.Student
.Include(d => d.Class.Select(di => di.Teachers).Select(i => i.Subjects))
.Include(d => d.Class.Select(di => di.Teachers).Select(di => di.Marks))
.firstOrDefault();
Entities Subject and Class are childern of Teachers entity. How to include both the child entities in one query? When the query is executed, does the Teachers entity will be loaded twice? As the 'class' table is included twice, when the SQL is generated does it joins the 'class' table 2 times?