当前位置: 代码迷 >> 综合 >> LINQ Where with AND OR condition
  详细解决方案

LINQ Where with AND OR condition

热度:86   发布时间:2024-01-10 02:17:14.0

http://stackoverflow.com/questions/1719488/linq-where-with-and-or-condition

from item in db.vw_Dropship_OrderItemswhere (listStatus != null ? listStatus.Contains(item.StatusCode) : true) &&(listMerchants != null ? listMerchants.Contains(item.MerchantId) : true)select item;

  相关解决方案