Прочетете на английски Редактиране

Споделяне чрез


DbExpressionBuilder.Filter(DbExpressionBinding, DbExpression) Method

Definition

Creates a new DbFilterExpression that filters the elements in the given input set using the specified predicate.

C#
public static System.Data.Common.CommandTrees.DbFilterExpression Filter(this System.Data.Common.CommandTrees.DbExpressionBinding input, System.Data.Common.CommandTrees.DbExpression predicate);

Parameters

input
DbExpressionBinding

An expression binding that specifies the input set.

predicate
DbExpression

An expression representing a predicate to evaluate for each member of the input set.

Returns

A new DbFilterExpression that produces the filtered set.

Exceptions

input or predicate is null.

predicate does not have a Boolean result type.

Applies to

Продукт Версии
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1