Query
var res4 = from u in dtEmp.AsEnumerable()
from v in dtDept.AsEnumerable()
let DOJ = u.Field<DateTime>("DOJ")
where u.Field<int>("DepartmentID") == v.Field<int>("DepartmentID") &&
DOJ > new DateTime(2014, 01, 04)
select new
{
Name = u.Field<string>("Name"),
Department = v.Field<string>("DepartmentName")
};
How to write the same Query in Lambda Expression?
Do you mean Method-Chain syntax?