以下の単純な 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;