संपादित करें

इसके माध्यम से साझा किया गया


DbExpressionBuilder.CrossApply Method

Definition

Creates a new DbApplyExpression that evaluates the given apply expression once for each element of a given input set, producing a collection of rows with corresponding input and apply columns.

Overloads

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

Creates a new DbApplyExpression that evaluates the given apply expression once for each element of a given input set, producing a collection of rows with corresponding input and apply columns. Rows for which apply evaluates to an empty set are not included.

CrossApply(DbExpressionBinding, DbExpressionBinding)

Creates a new DbApplyExpression that evaluates the given apply expression once for each element of a given input set, producing a collection of rows with corresponding input and apply columns. Rows for which apply evaluates to an empty set are not included.

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

Creates a new DbApplyExpression that evaluates the given apply expression once for each element of a given input set, producing a collection of rows with corresponding input and apply columns. Rows for which apply evaluates to an empty set are not included.

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

Parameters

source
DbExpression

A DbExpression that specifies the input set.

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

A method that specifies the logic to evaluate once for each member of the input set.

Returns

An new DbApplyExpression with the specified input and apply bindings and an DbExpressionKind of CrossApply.

Exceptions

source or apply is null.

-or-

The result of apply contains a name or expression that is null.

source does not have a collection result type.

-or-

The result of apply contains a name or expression that is not valid in an expression binding.

Applies to

CrossApply(DbExpressionBinding, DbExpressionBinding)

Creates a new DbApplyExpression that evaluates the given apply expression once for each element of a given input set, producing a collection of rows with corresponding input and apply columns. Rows for which apply evaluates to an empty set are not included.

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

Parameters

input
DbExpressionBinding

An DbExpressionBinding that specifies the input set.

apply
DbExpressionBinding

An DbExpressionBinding that specifies logic to evaluate once for each member of the input set.

Returns

An new DbApplyExpression with the specified input and apply bindings and an DbExpressionKind of CrossApply.

Exceptions

input or apply is null.

Applies to