DbExpressionBuilder.OuterApply 方法 (DbExpressionBinding, DbExpressionBinding)

[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]

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

命名空间:  System.Data.Entity.Core.Common.CommandTrees.ExpressionBuilder
程序集:  EntityFramework(在 EntityFramework.dll 中)

语法

声明
<ExtensionAttribute> _
Public Shared Function OuterApply ( _
    input As DbExpressionBinding, _
    apply As DbExpressionBinding _
) As DbApplyExpression
用法
Dim input As DbExpressionBinding 
Dim apply As DbExpressionBinding 
Dim returnValue As DbApplyExpression 

returnValue = input.OuterApply(apply)
public static DbApplyExpression OuterApply(
    this DbExpressionBinding input,
    DbExpressionBinding apply
)
[ExtensionAttribute]
public:
static DbApplyExpression^ OuterApply(
    DbExpressionBinding^ input, 
    DbExpressionBinding^ apply
)
static member OuterApply : 
        input:DbExpressionBinding * 
        apply:DbExpressionBinding -> DbApplyExpression
public static function OuterApply(
    input : DbExpressionBinding, 
    apply : DbExpressionBinding
) : DbApplyExpression

参数

返回值

类型:System.Data.Entity.Core.Common.CommandTrees.DbApplyExpression
具有指定的输入和应用绑定且 OuterApply 为 DbExpressionKind 的一个新的 DbApplyExpression。

使用说明

在 Visual Basic 和 C# 中,可以在 DbExpressionBinding 类型的任何对象上将此方法作为实例方法来调用。当使用实例方法语法调用此方法时,请省略第一个参数。有关详细信息,请参阅https://msdn.microsoft.com/zh-cn/library/bb384936(v=vs.113)https://msdn.microsoft.com/zh-cn/library/bb383977(v=vs.113)

异常

例外 条件
ArgumentNullException

input 或 apply 为 null。

请参阅

参考

DbExpressionBuilder 类

OuterApply 重载

System.Data.Entity.Core.Common.CommandTrees.ExpressionBuilder 命名空间