码迷,mamicode.com
首页 > 其他好文 > 详细

ef not in

时间:2018-06-26 14:25:26      阅读:151      评论:0      收藏:0      [点我收藏+]

标签:opened   one   var   sele   gif   state   code   display   detail   

//not in linq  

技术分享图片
1 var xx=(from c in measStateDetail where !((from d in breakInstr select d.InstrCode).Contains(c.InstrCode)) select c).ToList() 
View Code

//not in ef

技术分享图片
1 listSP= query1.Where(m => !query2.Contains(m.ETPRS_CODE)).ToList();
View Code

 

ef not in

标签:opened   one   var   sele   gif   state   code   display   detail   

原文地址:https://www.cnblogs.com/zj19940610/p/9228806.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!