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

猜你喜欢

转载自www.cnblogs.com/zj19940610/p/9228806.html
EF