Hi I have a query as -
var query=from e in DataContext.Employees
join d in DataContext.Dept
on e.DeptId equals d.Id
join o in DataContext.OtherInfo
on e.Id equals o.EmployeeId
where e.EmployeeId==4
select new Employee_Dept//DTO
{
EmployeeName=e.Name,
DeptName=d.Name
EmployeeId=e.ID
DeptId=d.Id
ContactNo=o.ContactNo
}
I want to write it using Lambda expressions this is could write -
var query = DataContext.Employees.Join(Dept,e=>e.DeptId,d=>d.Id,(e,d)).Where(e=>e.EmployeeId=4)
can anyone help me complete this query. Thanks for your help.