DbExpressionBuilder.CrossApply Metodo

Definizione

Crea un nuovo oggetto DbApplyExpression che valuta l'espressione apply specificata una volta per ogni elemento di un set di input specificato e produce una raccolta di righe con colonne corrispondenti relative all'input e all'espressione apply.

Overload

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

Crea un nuovo oggetto DbApplyExpression che valuta l'espressione apply specificata una volta per ogni elemento di un set di input specificato e produce una raccolta di righe con colonne corrispondenti relative all'input e all'espressione apply. Le righe in cui apply restituisce un set vuoto non vengono incluse.

CrossApply(DbExpressionBinding, DbExpressionBinding)

Crea un nuovo oggetto DbApplyExpression che valuta l'espressione apply specificata una volta per ogni elemento di un set di input specificato e produce una raccolta di righe con colonne corrispondenti relative all'input e all'espressione apply. Le righe in cui apply restituisce un set vuoto non vengono incluse.

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

Crea un nuovo oggetto DbApplyExpression che valuta l'espressione apply specificata una volta per ogni elemento di un set di input specificato e produce una raccolta di righe con colonne corrispondenti relative all'input e all'espressione apply. Le righe in cui apply restituisce un set vuoto non vengono 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.

Restituisce

Nuovo DbApplyExpression con l'input specificato e applica le associazioni e un DbExpressionKind di CrossApply.

Eccezioni

source o apply è null.

-oppure-

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

source non contiene di un tipo di risultato della raccolta.

-oppure-

Il risultato dell'operazione di apply contiene un nome o un'espressione non valido in un'associazione di espressioni.

Si applica a

CrossApply(DbExpressionBinding, DbExpressionBinding)

Crea un nuovo oggetto DbApplyExpression che valuta l'espressione apply specificata una volta per ogni elemento di un set di input specificato e produce una raccolta di righe con colonne corrispondenti relative all'input e all'espressione apply. Le righe in cui apply restituisce un set vuoto non vengono 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.

Restituisce

Nuovo DbApplyExpression con l'input specificato e applica le associazioni e un DbExpressionKind di CrossApply.

Eccezioni

input o apply è null.

Si applica a