把Equals改成 ==的写法就可以了,

query = query.WhereIf(m => m.VendorId==search.VendorId, !string.IsNullOrEmpty(Convert.ToString(search.VendorId)));

相关文章:

  • 2022-01-12
  • 2021-05-31
  • 2021-08-03
  • 2021-08-29
  • 2022-12-23
  • 2021-05-17
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-14
  • 2022-02-10
相关资源
相似解决方案