【问题标题】:IQueryable where iterating (this or this or this)IQueryable where iterator (this or this or this)
【发布时间】:2010-10-29 12:21:25
【问题描述】:

我有一个动态值列表,我想用 OR 条件查询 IQueryable。

我将如何将这些值与 IQueryable 进行“或”运算?

【问题讨论】:

    标签: linq iqueryable


    【解决方案1】:

    您可以创建一个List<T>,然后使用.Contains() 方法来替换您的“或”行为。

    让我了解一下你已经拥有的代码,我可以给你写一些东西。

    【讨论】:

      猜你喜欢
      • 2011-03-24
      • 2017-01-27
      • 1970-01-01
      • 2011-04-19
      • 1970-01-01
      • 1970-01-01
      • 2013-03-29
      • 1970-01-01
      • 2013-09-14
      相关资源
      最近更新 更多