DbExpressionBuilder.CrossApply 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
CrossApply(DbExpression, Func<DbExpression,KeyValuePair<String,DbExpression>>) |
创建一个新的 , DbApplyExpression 该表达式为给定输入集的每个元素计算一次给定的 apply 表达式,生成具有相应输入和应用列的行集合。 不包括计算结果为空集的行。 |
CrossApply(DbExpressionBinding, DbExpressionBinding) |
创建一个新的 , DbApplyExpression 该表达式为给定输入集的每个元素计算一次给定的 apply 表达式,生成具有相应输入和应用列的行集合。 不包括计算结果为空集的行。 |
CrossApply(DbExpression, Func<DbExpression,KeyValuePair<String,DbExpression>>)
创建一个新的 , DbApplyExpression 该表达式为给定输入集的每个元素计算一次给定的 apply 表达式,生成具有相应输入和应用列的行集合。 不包括计算结果为空集的行。
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public static System.Data.Entity.Core.Common.CommandTrees.DbApplyExpression CrossApply (this System.Data.Entity.Core.Common.CommandTrees.DbExpression source, Func<System.Data.Entity.Core.Common.CommandTrees.DbExpression,System.Collections.Generic.KeyValuePair<string,System.Data.Entity.Core.Common.CommandTrees.DbExpression>> apply);
static member CrossApply : System.Data.Entity.Core.Common.CommandTrees.DbExpression * Func<System.Data.Entity.Core.Common.CommandTrees.DbExpression, System.Collections.Generic.KeyValuePair<string, System.Data.Entity.Core.Common.CommandTrees.DbExpression>> -> System.Data.Entity.Core.Common.CommandTrees.DbApplyExpression
<Extension()>
Public Function CrossApply (source As DbExpression, apply As Func(Of DbExpression, KeyValuePair(Of String, DbExpression))) As DbApplyExpression
参数
- source
- DbExpression
指定输入集的 DbExpression。
- apply
- Func<DbExpression,KeyValuePair<String,DbExpression>>
一个方法,指定要针对每个输入集成员计算一次的逻辑。
返回
使用指定输入、应用绑定和 CrossApply DbExpressionKind 的新 DbApplyExpression。
- 属性
例外
apply 的结果包含为 null 的名称或表达式。
apply 的结果包含一个在表达式绑定中无效的名称或表达式。
适用于
CrossApply(DbExpressionBinding, DbExpressionBinding)
创建一个新的 , DbApplyExpression 该表达式为给定输入集的每个元素计算一次给定的 apply 表达式,生成具有相应输入和应用列的行集合。 不包括计算结果为空集的行。
public static System.Data.Entity.Core.Common.CommandTrees.DbApplyExpression CrossApply (this System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding input, System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding apply);
static member CrossApply : System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding * System.Data.Entity.Core.Common.CommandTrees.DbExpressionBinding -> System.Data.Entity.Core.Common.CommandTrees.DbApplyExpression
<Extension()>
Public Function CrossApply (input As DbExpressionBinding, apply As DbExpressionBinding) As DbApplyExpression
参数
- input
- DbExpressionBinding
指定输入集的 DbExpressionBinding。
- apply
- DbExpressionBinding
一个 DbExpressionBinding,指定要针对每个输入集成员计算一次的逻辑。
返回
使用指定输入、应用绑定和 CrossApply DbExpressionKind 的新 DbApplyExpression。
例外
input 或 apply 为 null。