ef not in

//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

 

posted @ 2018-06-26 14:08  风中起舞  阅读(225)  评论(0编辑  收藏  举报