DbExpressionBuilder.Where(DbExpression, Func<DbExpression,DbExpression>) Método

Definição

Cria uma nova DbFilterExpression que filtra os elementos no conjunto de entrada fornecido usando o predicado especificado.Creates a new DbFilterExpression that filters the elements in the given input set using the specified predicate.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbFilterExpression ^ Where(System::Data::Common::CommandTrees::DbExpression ^ source, Func<System::Data::Common::CommandTrees::DbExpression ^, System::Data::Common::CommandTrees::DbExpression ^> ^ predicate);
public static System.Data.Common.CommandTrees.DbFilterExpression Where (this System.Data.Common.CommandTrees.DbExpression source, Func<System.Data.Common.CommandTrees.DbExpression,System.Data.Common.CommandTrees.DbExpression> predicate);
static member Where : System.Data.Common.CommandTrees.DbExpression * Func<System.Data.Common.CommandTrees.DbExpression, System.Data.Common.CommandTrees.DbExpression> -> System.Data.Common.CommandTrees.DbFilterExpression
<Extension()>
Public Function Where (source As DbExpression, predicate As Func(Of DbExpression, DbExpression)) As DbFilterExpression

Parâmetros

source
DbExpression

Uma expressão que especifica o conjunto de entrada.An expression that specifies the input set.

predicate
Func<DbExpression,DbExpression>

Um método que representa o predicado a ser avaliado para cada membro do conjunto de entrada.A method representing the predicate to evaluate for each member of the input set. Este método deve produzir uma expressão com um tipo de resultado booliano que fornece a lógica de predicado.This method must produce an expression with a Boolean result type that provides the predicate logic.

Retornos

DbFilterExpression

Um novo DbQuantifierExpression que representa a operação Any.A new DbQuantifierExpression that represents the Any operation.

Exceções

source ou predicate é nulo.source or predicate is null.

- ou --or- A expressão produzida por predicate é nula.The expression produced by predicate is null.

A expressão produzida por predicate não tem um tipo de resultado booliano.The expression produced by predicate does not have a Boolean result type.

Aplica-se a