DbExpressionBuilder.OuterApply 方法

定义

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

重载

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

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

OuterApply(DbExpressionBinding, DbExpressionBinding)

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

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

为给定输入集的每个元素创建一次计算给定DbApplyExpression表达式的新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

指定输入集的 A DbExpression

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

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

返回

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

例外

sourceapply 为 null。

-或-

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

source 没有集合结果类型。

-或-

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

适用于

OuterApply(DbExpressionBinding, DbExpressionBinding)

为给定输入集的每个元素创建一次计算给定DbApplyExpression表达式的新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 ,指定要针对输入集的每个成员计算一次的逻辑。

返回

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

例外

inputapply 为 null。

适用于