员工表
EmpID
Emp_First_Name
Manager_ID
Department_ID
RoleID
系表
Department_ID
Department_N
AME
角色表
RoleID
RoleName
加入三个表
var join = from u in db.TBL_Employees
join v in db.TBL_Departments
on u.Department_ID equals v.Department_ID
join x in db.TBL_Employees
on u.Manager_ID equals x.Emp_ID
join z in db.TBL_Roles
on u.RoleID equals z.RoleID
select new
{
Name = u.Emp_First_Name,
Department = v.Department_Name,
Manager = x.Emp_First_Name,
Role = z.RoleName
};
此查询工作正常。 但我想写Lambda表达式相同的查询。 如何显示使用Lambda表达式相同的输出?