[英]how to implement join using LINQ and EntityFramework in MVC4
> SELECT fhr_Request.RequestID, fhr_DepartmentOwners.EmpCode FROM
> fhr_Request INNER JOIN fhr_DepartmentOwners ON
> fhr_Request.[Function]=fhr_DepartmentOwners.FunctionID
我想在linq中使用它,但无法使用它,请建议我如何使用
var res = from t1 in fhr_Request
join t2 in fhr_DepartmentOwners
on t1.Function equals t2.FunctionID
select new (fhr_Request=t1,fhr_DepartmentOwners=t2)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.