SQL not in 转化为Linq
来源:互联网 发布:程序员挣钱的五种方法 编辑:程序博客网 时间:2024/05/29 16:36
SQL语句:
select * from QY_Business where StatusID=1 and BusinessID not in(select OtherBusinessID from QY_BusinessAssignConsumePlaceDetail where StatusID =1)
Linq语句:
var result = db.QY_Business.Where(c => c.StatusID == 1 &&!(from y in db.QY_BusinessAssignConsumePlaceDetailwhere y.StatusID == 1 select y.OtherBusinessID).Contains(c.BusinessID));
- SQL not in 转化为Linq
- sql里的in对应linq的写法 及 IQueryable转化为Dictionary
- Linq to Sql 如何实现 in 与 not in
- LINQ not in查询
- Linq not in 查询
- LINQ not in 写法
- linq to sql生成not in语句的小技巧
- LINQ中如何使用SQL中NOT IN
- Linq in 与 not in
- 将string数组转化为sql的in条件
- Linq to SQL 中Not in 与Not Exists的用法
- Linq 如何实现 in 与 not in
- Linq 如何实现 in 与 not in
- linq:转化为一对多的字典
- 将linq转换为sql
- LINQ中实现not in查询
- Linq如何实现int与not in?
- 将string数组转化为sql的in条件用sql查询
- ubuntu hadoop完全分布式模式配置
- 人生如书,当以心读
- python-字符串操作
- shell中$(( )) 与 $( ) 还有${ }的区别
- 无法对 过程'Xp_regaddmultistring' 执行 删除,因为它不存在,或者您没有所需的权限。
- SQL not in 转化为Linq
- ibatis动态sql
- grep 搜索目录中的文件
- Android简单的Timer小例子
- RMAN命令详解 非常好的文章
- hdu 1163 Eddy's digital Roots (数学)
- hdu 2709 Sumsets (找规律)
- centos linux LVS -NAT 方式搭建负载均衡
- linux进程状态浅析