Sdílet prostřednictvím


DbExpressionBuilder.Filter(DbExpressionBinding, DbExpression) Metoda

Definice

Vytvoří nový DbFilterExpression , který filtruje prvky v dané vstupní sadě pomocí zadaného predikátu.

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

Parametry

input
DbExpressionBinding

Vazba výrazu, která určuje vstupní sadu.

predicate
DbExpression

Výraz představující predikát, který se má vyhodnotit pro každý člen vstupní sady.

Návraty

Nový DbFilterExpression, který vytvoří filtrovanou sadu.

Výjimky

input nebo predicate je null.

predicate nemá logický typ výsledku.

Platí pro