Share via


DbExpressionBuilder.OuterApply 方法

定义

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

重载

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

创建一个新的 DbApplyExpression,它为每个给定输入集元素计算一次指定的 apply 表达式,并生成具有相应 input 和 apply 列的行集合。 对于 apply 计算结果为空集的行,其 apply 列的值为 null

OuterApply(DbExpressionBinding, DbExpressionBinding)

创建一个新的 DbApplyExpression,它为每个给定输入集元素计算一次指定的 apply 表达式,并生成具有相应 input 和 apply 列的行集合。 对于 apply 计算结果为空集的行,其 apply 列的值为 null

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

创建一个新的 DbApplyExpression,它为每个给定输入集元素计算一次指定的 apply 表达式,并生成具有相应 input 和 apply 列的行集合。 对于 apply 计算结果为空集的行,其 apply 列的值为 null

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbApplyExpression ^ OuterApply(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 OuterApply (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 OuterApply : 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 OuterApply (source As DbExpression, apply As Func(Of DbExpression, KeyValuePair(Of String, DbExpression))) As DbApplyExpression

参数

source
DbExpression

指定输入集的 DbExpression

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

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

返回

使用指定输入、应用绑定和 OuterApply DbExpressionKind 的新 DbApplyExpression。

例外

sourceapply 为 null。

- 或 -

apply 的结果包含为 null 的名称或表达式。

Source 没有集合结果类型。

- 或 -

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

适用于

OuterApply(DbExpressionBinding, DbExpressionBinding)

创建一个新的 DbApplyExpression,它为每个给定输入集元素计算一次指定的 apply 表达式,并生成具有相应 input 和 apply 列的行集合。 对于 apply 计算结果为空集的行,其 apply 列的值为 null

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

参数

input
DbExpressionBinding

指定输入集的 DbExpressionBinding

apply
DbExpressionBinding

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

返回

使用指定输入、应用绑定和 OuterApply DbExpressionKind 的新 DbApplyExpression。

例外

inputapply 为 null。

适用于