Sdílet prostřednictvím


DbExpressionBuilder.All Metoda

Definice

Vytvoří novou DbQuantifierExpression , která určuje, zda daný predikát uchovává pro všechny prvky vstupní sady.

Přetížení

All(DbExpression, Func<DbExpression,DbExpression>)

Vytvoří novou DbQuantifierExpression , která určuje, zda daný predikát uchovává pro všechny prvky vstupní sady.

All(DbExpressionBinding, DbExpression)

Vytvoří novou DbQuantifierExpression , která určuje, zda daný predikát uchovává pro všechny prvky vstupní sady.

All(DbExpression, Func<DbExpression,DbExpression>)

Vytvoří novou DbQuantifierExpression , která určuje, zda daný predikát uchovává pro všechny prvky vstupní sady.

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

Parametry

source
DbExpression

Výraz, který určuje vstupní sadu.

predicate
Func<DbExpression,DbExpression>

Metoda představující predikát, který se má vyhodnotit pro každý člen vstupní sady. Tato metoda musí vytvořit výraz s logickým typem výsledku, který poskytuje logiku predikátu.

Návraty

DbQuantifierExpression

Nový DbQuantifierExpression, který představuje operaci All.

Výjimky

source nebo predicate je null.

-nebo-

Výraz vytvořený hodnotou predicate null.

source nemá typ výsledku kolekce.

-nebo-

Výraz vytvořený pomocí Predicate logického typu výsledku nemá.

Platí pro

All(DbExpressionBinding, DbExpression)

Vytvoří novou DbQuantifierExpression , která určuje, zda daný predikát uchovává pro všechny prvky vstupní sady.

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

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

DbQuantifierExpression

Nový DbQuantifierExpression, který představuje operaci All.

Výjimky

input nebo predicate je null.

predicate nemá logický typ výsledku.

Platí pro