DbExpressionBuilder.OuterApply 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
为给定输入集的每个元素创建一次计算给定DbApplyExpression表达式的新apply项,生成具有相应输入并应用列的行集合。
重载
| 名称 | 说明 |
|---|---|
| OuterApply(DbExpression, Func<DbExpression,KeyValuePair<String,DbExpression>>) |
为给定输入集的每个元素创建一次计算给定DbApplyExpression表达式的新 |
| OuterApply(DbExpressionBinding, DbExpressionBinding) |
为给定输入集的每个元素创建一次计算给定DbApplyExpression表达式的新 |
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。
例外
适用于
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。
例外
input 或 apply 为 null。