DbExpressionBuilder.CrossApply Metodo

Definizione

Crea un nuovo DbApplyExpression oggetto che valuta l'espressione specificata apply una volta per ogni elemento di un determinato set di input, generando una raccolta di righe con input corrispondente e applicando colonne.

Overload

Nome Descrizione
CrossApply(DbExpression, Func<DbExpression,KeyValuePair<String,DbExpression>>)

Crea un nuovo DbApplyExpression oggetto che valuta l'espressione specificata apply una volta per ogni elemento di un determinato set di input, generando una raccolta di righe con input corrispondente e applicando colonne. Le righe per cui apply restituisce un set vuoto non sono incluse.

CrossApply(DbExpressionBinding, DbExpressionBinding)

Crea un nuovo DbApplyExpression oggetto che valuta l'espressione specificata apply una volta per ogni elemento di un determinato set di input, generando una raccolta di righe con input corrispondente e applicando colonne. Le righe per cui apply restituisce un set vuoto non sono incluse.

CrossApply(DbExpression, Func<DbExpression,KeyValuePair<String,DbExpression>>)

Crea un nuovo DbApplyExpression oggetto che valuta l'espressione specificata apply una volta per ogni elemento di un determinato set di input, generando una raccolta di righe con input corrispondente e applicando colonne. Le righe per cui apply restituisce un set vuoto non sono incluse.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbApplyExpression ^ CrossApply(System::Data::Common::CommandTrees::DbExpression ^ source, Func<System::Data::Common::CommandTrees::DbExpression ^, System::Collections::Generic::KeyValuePair<System::String ^, System::Data::Common::CommandTrees::DbExpression ^>> ^ apply);
public static System.Data.Common.CommandTrees.DbApplyExpression CrossApply(this System.Data.Common.CommandTrees.DbExpression source, Func<System.Data.Common.CommandTrees.DbExpression,System.Collections.Generic.KeyValuePair<string,System.Data.Common.CommandTrees.DbExpression>> apply);
static member CrossApply : System.Data.Common.CommandTrees.DbExpression * Func<System.Data.Common.CommandTrees.DbExpression, System.Collections.Generic.KeyValuePair<string, System.Data.Common.CommandTrees.DbExpression>> -> System.Data.Common.CommandTrees.DbApplyExpression
<Extension()>
Public Function CrossApply (source As DbExpression, apply As Func(Of DbExpression, KeyValuePair(Of String, DbExpression))) As DbApplyExpression

Parametri

source
DbExpression

Oggetto DbExpression che specifica il set di input.

apply
Func<DbExpression,KeyValuePair<String,DbExpression>>

Metodo che specifica la logica da valutare una volta per ogni membro del set di input.

Valori restituiti

Nuovo DbApplyExpression con l'input specificato e applicare associazioni e un oggetto DbExpressionKind CrossApply.

Eccezioni

source o apply è null.

oppure

Il risultato di apply contiene un nome o un'espressione null.

source non dispone di un tipo di risultato della raccolta.

oppure

Il risultato di apply contiene un nome o un'espressione non valida in un'associazione di espressioni.

Si applica a

CrossApply(DbExpressionBinding, DbExpressionBinding)

Crea un nuovo DbApplyExpression oggetto che valuta l'espressione specificata apply una volta per ogni elemento di un determinato set di input, generando una raccolta di righe con input corrispondente e applicando colonne. Le righe per cui apply restituisce un set vuoto non sono incluse.

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

Parametri

input
DbExpressionBinding

Oggetto DbExpressionBinding che specifica il set di input.

apply
DbExpressionBinding

Oggetto DbExpressionBinding che specifica la logica da valutare una volta per ogni membro del set di input.

Valori restituiti

Nuovo DbApplyExpression con l'input specificato e applicare associazioni e un oggetto DbExpressionKind CrossApply.

Eccezioni

input o apply è null.

Si applica a