DbExpressionBuilder.Element(DbExpression) 方法

定义

创建一个新的 DbElementExpression,它将一个集合转换为单一实例。

public static System.Data.Entity.Core.Common.CommandTrees.DbElementExpression Element (this System.Data.Entity.Core.Common.CommandTrees.DbExpression argument);
static member Element : System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbElementExpression
<Extension()>
Public Function Element (argument As DbExpression) As DbElementExpression

参数

argument
DbExpression

一个指定输入集的表达式。

返回

一个 DbElementExpression,表示从集参数到单一实例的转换。

例外

参数为 null。

参数没有集合结果类型。

适用于