DbExpressionBuilder.CrossApply 方法

定义

为给定输入集的每个元素创建一次计算给定DbApplyExpression表达式的新apply项,生成具有相应输入并应用列的行集合。

重载

名称 说明
CrossApply(DbExpression, Func<DbExpression,KeyValuePair<String,DbExpression>>)

为给定输入集的每个元素创建一次计算给定DbApplyExpression表达式的新apply项,生成具有相应输入并应用列的行集合。 不包括计算 apply 结果为空集的行。

CrossApply(DbExpressionBinding, DbExpressionBinding)

为给定输入集的每个元素创建一次计算给定DbApplyExpression表达式的新apply项,生成具有相应输入并应用列的行集合。 不包括计算 apply 结果为空集的行。

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

为给定输入集的每个元素创建一次计算给定DbApplyExpression表达式的新apply项,生成具有相应输入并应用列的行集合。 不包括计算 apply 结果为空集的行。

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

参数

source
DbExpression

指定输入集的 A DbExpression

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

一个方法,指定为输入集的每个成员计算一次的逻辑。

返回

具有指定输入并应用绑定和 DbExpressionKind CrossApply 的新 DbApplyExpression。

例外

sourceapply 为 null。

-或-

包含一个名称或表达式的结果 apply ,该名称或表达式为 null。

source 没有集合结果类型。

-或-

结果 apply 包含在表达式绑定中无效的名称或表达式。

适用于

CrossApply(DbExpressionBinding, DbExpressionBinding)

为给定输入集的每个元素创建一次计算给定DbApplyExpression表达式的新apply项,生成具有相应输入并应用列的行集合。 不包括计算 apply 结果为空集的行。

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

参数

input
DbExpressionBinding

一个 DbExpressionBinding 指定输入集。

apply
DbExpressionBinding

一个 DbExpressionBinding ,指定要针对输入集的每个成员计算一次的逻辑。

返回

具有指定输入并应用绑定和 DbExpressionKind CrossApply 的新 DbApplyExpression。

例外

inputapply 为 null。

适用于