Condividi tramite


DbExpressionBuilder.Where Metodo

Definizione

Crea un nuovo oggetto DbFilterExpression che filtra gli elementi nel set di input specificato tramite il predicato specificato.

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

Parametri

source
DbExpression

Espressione che specifica il set di input.

predicate
Func<DbExpression,DbExpression>

Metodo che rappresenta il predicato da valutare per ogni membro del set di input. Questo metodo deve produrre un'espressione con un tipo di risultato booleano che fornisce la logica predicativa.

Restituisce

Nuovo DbQuantifierExpression che rappresenta l'operazione Any.

Eccezioni

L'espressione prodotta dal predicato è Null.

L'espressione prodotta dal predicato non ha un tipo di risultato booleano.

Si applica a