DbExpressionBuilder.Any Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Crea un nuovo DbExpression oggetto che determina se l'argomento set specificato non è vuoto.
Overload
| Nome | Descrizione |
|---|---|
| Any(DbExpression) |
Crea un nuovo DbExpression oggetto che determina se l'argomento set specificato non è vuoto. |
| Any(DbExpression, Func<DbExpression,DbExpression>) |
Crea un nuovo DbQuantifierExpression oggetto che determina se il predicato specificato contiene per qualsiasi elemento del set di input. |
| Any(DbExpressionBinding, DbExpression) |
Crea un nuovo DbQuantifierExpression oggetto che determina se il predicato specificato contiene per qualsiasi elemento del set di input. |
Any(DbExpression)
Crea un nuovo DbExpression oggetto che determina se l'argomento set specificato non è vuoto.
public:
[System::Runtime::CompilerServices::Extension]
static System::Data::Common::CommandTrees::DbExpression ^ Any(System::Data::Common::CommandTrees::DbExpression ^ source);
public static System.Data.Common.CommandTrees.DbExpression Any(this System.Data.Common.CommandTrees.DbExpression source);
static member Any : System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbExpression
<Extension()>
Public Function Any (source As DbExpression) As DbExpression
Parametri
- source
- DbExpression
Espressione che specifica il set di input.
Valori restituiti
Nuovo oggetto applicato a un nuovo DbNotExpressionDbIsEmptyExpression oggetto con l'argomento specificato.
Eccezioni
source è null.
source non dispone di un tipo di risultato della raccolta.
Si applica a
Any(DbExpression, Func<DbExpression,DbExpression>)
Crea un nuovo DbQuantifierExpression oggetto che determina se il predicato specificato contiene per qualsiasi elemento del set di input.
public:
[System::Runtime::CompilerServices::Extension]
static System::Data::Common::CommandTrees::DbQuantifierExpression ^ Any(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 Any(this System.Data.Common.CommandTrees.DbExpression source, Func<System.Data.Common.CommandTrees.DbExpression,System.Data.Common.CommandTrees.DbExpression> predicate);
static member Any : System.Data.Common.CommandTrees.DbExpression * Func<System.Data.Common.CommandTrees.DbExpression, System.Data.Common.CommandTrees.DbExpression> -> System.Data.Common.CommandTrees.DbQuantifierExpression
<Extension()>
Public Function Any (source As DbExpression, predicate As Func(Of DbExpression, DbExpression)) As DbQuantifierExpression
Parametri
- source
- DbExpression
Espressione che specifica il set di input.
- predicate
- Func<DbExpression,DbExpression>
Metodo che rappresenta il predicato da valutare per ogni membro del set di input. Questo metodo deve produrre un'espressione con un tipo di risultato booleano che fornisce la logica del predicato.
Valori restituiti
Nuovo dbQuantifierExpression che rappresenta l'operazione Any.
Eccezioni
source non dispone di un tipo di risultato della raccolta.
oppure
L'espressione prodotta da predicate non ha un tipo di risultato booleano.
Si applica a
Any(DbExpressionBinding, DbExpression)
Crea un nuovo DbQuantifierExpression oggetto che determina se il predicato specificato contiene per qualsiasi elemento del set di input.
public:
[System::Runtime::CompilerServices::Extension]
static System::Data::Common::CommandTrees::DbQuantifierExpression ^ Any(System::Data::Common::CommandTrees::DbExpressionBinding ^ input, System::Data::Common::CommandTrees::DbExpression ^ predicate);
public static System.Data.Common.CommandTrees.DbQuantifierExpression Any(this System.Data.Common.CommandTrees.DbExpressionBinding input, System.Data.Common.CommandTrees.DbExpression predicate);
static member Any : System.Data.Common.CommandTrees.DbExpressionBinding * System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbQuantifierExpression
<Extension()>
Public Function Any (input As DbExpressionBinding, predicate As DbExpression) As DbQuantifierExpression
Parametri
- input
- DbExpressionBinding
Associazione di espressioni che specifica il set di input.
- predicate
- DbExpression
Espressione che rappresenta un predicato da valutare per ogni membro del set di input.
Valori restituiti
Nuovo dbQuantifierExpression che rappresenta l'operazione Any.
Eccezioni
input o predicate è null.
L'espressione prodotta da predicate non ha un tipo di risultato booleano.