Sdílet prostřednictvím


DbExpressionBuilder.Any Metoda

Definice

Přetížení

Any(DbExpression)

Vytvoří nový DbExpression , který určuje, zda zadaný argument sady není prázdný.

Any(DbExpression, Func<DbExpression,DbExpression>)

Vytvoří nový DbQuantifierExpression , který určuje, zda daný predikát obsahuje pro některý prvek vstupní sady.

Any(DbExpressionBinding, DbExpression)

Vytvoří nový DbQuantifierExpression , který určuje, zda daný predikát obsahuje pro některý prvek vstupní sady.

Any(DbExpression)

Vytvoří nový DbExpression , který určuje, zda zadaný argument sady není prázdný.

public static System.Data.Entity.Core.Common.CommandTrees.DbExpression Any (this System.Data.Entity.Core.Common.CommandTrees.DbExpression source);
static member Any : System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbExpression
<Extension()>
Public Function Any (source As DbExpression) As DbExpression

Parametry

source
DbExpression

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

Návraty

Nový DbNotExpression použitý na nový DbIsEmptyExpression se zadaným argumentem.

Výjimky

source má hodnotu null.

source nemá typ výsledku kolekce.

Platí pro

Any(DbExpression, Func<DbExpression,DbExpression>)

Vytvoří nový DbQuantifierExpression , který určuje, zda daný predikát obsahuje pro některý prvek vstupní sady.

public static System.Data.Entity.Core.Common.CommandTrees.DbQuantifierExpression Any (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 Any : 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.DbQuantifierExpression
<Extension()>
Public Function Any (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

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

Výjimky

Výraz vytvořený predikátem má hodnotu null.

Výraz vytvořený predikátem nemá logický typ výsledku.

Platí pro

Any(DbExpressionBinding, DbExpression)

Vytvoří nový DbQuantifierExpression , který určuje, zda daný predikát obsahuje pro některý prvek vstupní sady.

public static System.Data.Entity.Core.Common.CommandTrees.DbQuantifierExpression Any (this System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding input, System.Data.Entity.Core.Common.CommandTrees.DbExpression predicate);
static member Any : System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding * System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbQuantifierExpression
<Extension()>
Public Function Any (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

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

Výjimky

vstup nebo predikát je null.

Výraz vytvořený predikátem nemá logický typ výsledku.

Platí pro