你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

FilterString.Generate 方法

定义

重载

Generate<T>(Expression<Func<T,Boolean>>)

从指定的 Linq 表达式生成 OData 筛选器。 跳过 null 参数。

Generate<T>(Expression<Func<T,Boolean>>, Boolean)

从指定的 Linq 表达式生成 OData 筛选器。

Generate<T>(Expression<Func<T,Boolean>>)

从指定的 Linq 表达式生成 OData 筛选器。 跳过 null 参数。

public static string Generate<T> (System.Linq.Expressions.Expression<Func<T,bool>> filter);
static member Generate : System.Linq.Expressions.Expression<Func<'T, bool>> -> string
Public Shared Function Generate(Of T) (filter As Expression(Of Func(Of T, Boolean))) As String

类型参数

T

筛选器类型。

参数

filter
Expression<Func<T,Boolean>>

用于生成筛选器的实体。

返回

适用于

Generate<T>(Expression<Func<T,Boolean>>, Boolean)

从指定的 Linq 表达式生成 OData 筛选器。

public static string Generate<T> (System.Linq.Expressions.Expression<Func<T,bool>> filter, bool skipNullFilterParameters);
static member Generate : System.Linq.Expressions.Expression<Func<'T, bool>> * bool -> string
Public Shared Function Generate(Of T) (filter As Expression(Of Func(Of T, Boolean)), skipNullFilterParameters As Boolean) As String

类型参数

T

筛选器类型。

参数

filter
Expression<Func<T,Boolean>>

用于生成筛选器的实体。

skipNullFilterParameters
Boolean

指示是否应跳过 null 值的值。

返回

适用于