这是一个方法,返回IList<AtAGlanceDetail>
public IList<AtAGlanceDetail> GetAtAGlanceReportByCondition(int? supplierId, string container, DateTime? ETA, string FOBPoint, string HBLNum, DateTime? motherVesselETD, string voyage) 
{ 
var data = GetAll().Where(c => c.SupplierId == supplierId && c.Container == container && c.ETA == ETA && c.FOBPoint == FOBPoint && c.HBLNum == HBLNum && c.MotherVesselETD == motherVesselETD && c.Voyage == voyage).AsQueryable(); 
return data.ToList();
}
linq的 多条件拼接 是使用
dataSouce.Where(c => c.SupplierId == supplierId(条件参数) && c.Container == container && c.ETA == ETA ) //这种格式的写法

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-22
  • 2021-09-02
  • 2021-05-28
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-26
  • 2021-07-13
  • 2022-03-01
  • 2021-07-31
  • 2022-12-23
相关资源
相似解决方案