0
我想將下面的簡單SQL查詢更改爲LINQ,我該如何更改它?想要將SQL查詢更改爲LINQ
select * from table1 where isPaid = 'true' and Id in (select Id from table2 where EmployeeId = 12)
與此相似?
from pa in db.PaymentAdvices
where pa.IsPaid == true
orderby pa.PaidDate descending
select pa;
謝謝,但我已經編輯了我問題,請你重新檢查一下嗎? – bnil 2013-04-22 07:37:37
它返回不同於SQL查詢記錄的記錄。 – bnil 2013-04-22 07:41:51