如何为linq查询写入include的参数字符串?

如何为linq查询写入include的参数字符串?,linq,Linq,如果表员工具有表人员、部门的外键, 当获取employee的实体时,我想同时加载两个关联的实体。 如何编写linq查询?像下面这样 var employee = this.Context.Employee.Include("Person, Department"); 它似乎不起作用 var employee = this.Context.Employee.Include("Person").Include("Department");

如果表员工具有表人员、部门的外键, 当获取employee的实体时,我想同时加载两个关联的实体。 如何编写linq查询?像下面这样

var employee = this.Context.Employee.Include("Person, Department");
它似乎不起作用

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