Linq to SQL 中Not in 与Not Exists的用法

来源:互联网 发布:淘宝拍a发b怎么查 编辑:程序博客网 时间:2024/06/14 07:42

在linq to sql实现where条件中in或exists的用法:

from a in TableA where !(from b in TableB where 条件 select b.ID).Contains(a.ID)

原创粉丝点击