LINQ NOT IN 的写法 琢磨了好久终于找到的

来源:互联网 发布:新浪微博粉丝数据分析 编辑:程序博客网 时间:2024/06/06 10:07
  var temp = MyDao.GetEntities(x => true);            //.Distinct(new CompareRepeatData())            var CusmerData = new CusmerService().GetEntities(x => x.CUSTOMER_ID == "3");            int[] str = new int[] { };            //linq not in 写法            var data = MerchantViewModel.ToViewModelList(temp.Where(x => CusmerData.All(y => y.MERCHANT_ID.ObjToInt() != x.MERCHANT_ID)));

0 0