DbExpressionBuilder.Filter(DbExpressionBinding, DbExpression) Méthode

Définition

Crée un nouveau DbFilterExpression filtre les éléments du jeu d’entrée donné à l’aide du prédicat spécifié.

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

Paramètres

input
DbExpressionBinding

Liaison d’expression qui spécifie le jeu d’entrées.

predicate
DbExpression

Expression représentant un prédicat à évaluer pour chaque membre du jeu d’entrée.

Retours

Nouvelle DbFilterExpression qui produit l’ensemble filtré.

Exceptions

input ou predicate a la valeur Null.

predicate n’a pas de type de résultat booléen.

S’applique à