读书人

linq子查询有关问题?

发布时间: 2012-06-12 14:21:25 作者: rapoo

linq子查询问题??
select * from table1 where table1.ID not in(select TID from table2 where UID=8)

请问下这个用 LinQ 怎样去写啊 ?

[解决办法]
from s in table1 where !(from p in table2 select p.ID).ToList().Contains(s.ID) select s;

读书人网 >asp.net

热点推荐