语言

DbExpressionBuilder.CrossApply 方法

定义

重载

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

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

CrossApply(DbExpressionBinding, DbExpressionBinding)

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

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

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

[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

指定输入集的 A DbExpression 。

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

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

返回

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

特性

例外

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

应用的结果包含一个在表达式绑定中无效的名称或表达式。

适用于

CrossApply(DbExpressionBinding, DbExpressionBinding)

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

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 ,指定要针对输入集的每个成员计算一次的逻辑。

返回

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

例外

输入或应用为 null。

适用于