你如何在
Linq中重写这个?
SELECT Id,Name FROM TableA WHERE TableA.Id IN (SELECT xx from TableB INNER JOIN Table C....)
所以用简单的英语,我想从TableA中选择Id和Name,其中TableA的Id在第二个查询的结果集中.
解决方法
from a in TableA where (from b in TableB join c in TableC on b.id equals c.id where .. select b.id) .Contains(a.Id) select new { a.Id,a.Name }