【发布时间】:2013-05-23 20:57:39
【问题描述】:
如何在 linq 中编写此查询?
select * from bills as b inner join customer as c1
On b.shipperID=c1.CustomerID inner join customer c2
On b.ConsigneeID=c2.CustomerID
---------------------------
我需要如下:
var result=from p1 in entities.bills
join p2 in entities.customer on p1.shipperID equals p2.customerID
join p3 in entities.customer on p1.consigneeID equals p3.customerID
select p2;
return resuls.Tolist()
谢谢:)
【问题讨论】:
标签: linq entity inner-join