0
点赞
收藏
分享

微信扫一扫

Linq_根据条件判断是否启用where条件

莞尔小迷糊 2023-03-05 阅读 95


var result =  from pd in _context.PickDetails.Include(pd => pd.DeliveryOrderDetail)
join p in _context.Pallets on pd.Pallet_ID equals p.Pallet_ID
where pd.DeliveryOrder_ID == deliveryOrderId
&& p.IsLoadConfirmed == false
&& (fromSetPallet || p.Status == "REQUEST")
&& pd.IsCombined == false
group pd by new {p.Pallet_ID, p.SAP_Pallet_ID, p.LocationCode} into palletGroup
select palletGroup;


and (xx  ||  xxx =  xxx)


求人不如求己啊,问了好半天。哎。

举报

相关推荐

0 条评论