you want an include() query to indicate that you want to eagerly load the related course entities:
include()
course
var allstudents = context.students.include( s => s.courses);
also make sure you have a
using system.data.entity;
in your code file so you can use the strongly typed include() extension method.
you want an
include()
query to indicate that you want to eagerly load the relatedcourse
entities:also make sure you have a
in your code file so you can use the strongly typed
include()
extension method.