tags:

views:

38

answers:

1

If table Employee has foreign key for table person, department, when get the entity of employee, I want to both associated entities loaded too. how to write the linq query? like below?

var employee = this.Context.Employee.Include("Person, Department");

It seems not working.

+1  A: 
var employee = this.Context.Employee.Include("Person").Include("Department");
Ben M