在Linq中过滤是否不存在项 [英] Filtering in Linq for if item not exist

查看:71
本文介绍了在Linq中过滤是否不存在项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个查询,如果table1的ID在table2中不存在,我想检查以下内容,然后从table1中选择此行.

提前谢谢.
:)

Hi all,

I have a query where I want to check the following if the ID of table1 does not exist in table2 then select this row from table1.

Thanks in advance.
:)

推荐答案

查看此链接

http://stackoverflow.com/questions/423840/in-statement-for-linq-到对象 [ ^ ]

http://stackoverflow.com/questions/896123/linq-version-of-sql-声明中 [ ^ ]

http://msdn.microsoft.com/en-us/vcsharp/aa336746 [ ^ ]
see this links

http://stackoverflow.com/questions/423840/in-statement-for-linq-to-objects[^]

http://stackoverflow.com/questions/896123/linq-version-of-sql-in-statement[^]

http://msdn.microsoft.com/en-us/vcsharp/aa336746[^]


这篇关于在Linq中过滤是否不存在项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆