DbExpressionBuilder.Filter(DbExpressionBinding, DbExpression) Metoda

Definicja

Tworzy nowy DbFilterExpression element filtrujący elementy w danym zestawie danych wejściowych przy użyciu określonego predykatu.

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

Powiązanie wyrażenia określające zestaw danych wejściowych.

predicate
DbExpression

Wyrażenie reprezentujące predykat do oceny dla każdego elementu członkowskiego zestawu danych wejściowych.

Zwraca

Nowa funkcja DbFilterExpression, która generuje filtrowany zestaw.

Wyjątki

input lub predicate ma wartość null.

predicate nie ma typu wyniku logicznego.

Dotyczy