0
我有一個SQL:尋找一種方法來創建LINQ到SQL主從與其中詳細
select *
from order
LEFT OUTER JOIN orderDetail
where
(select count(*) from orderDetail where orderDetail.id=order.id and orderDetail.productName='book')>0
它如何能在LINQ實現
感謝
爲了{ID = 1} orderdertail {ID = 1,產品名稱= '筆'} orderdertail {ID = 1,產品名稱= '看'} orderdertail {ID = 1, PRODUCTNAME = '杯'} 順序{ID = 2} orderdertail {ID = 1,產品名稱= '筆'} orderdertail {ID = 1,產品名稱= '書'} orderdertail {ID = 1,產品名稱=」 ' 我的sql將選擇訂單{id = 2} 而orderdertail包含{id = 1,productName ='book'} 是否清楚? –