📜  .net 实体查询多个连接条件类型推断 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:50.529000             🧑  作者: Mango

代码示例1
var query = (from RR in context.TableOne
             from M in context.TableTwo 
             where RR.OrderedProductId == M.ProductID
                   || RR.SoldProductId == M.ProductID // Your join
             where RR.CustomerID == CustomerID 
                   && statusIds.Any(x => x.Equals(RR.StatusID.Value))
             select RR.OrderId).ToArray();