DbExpressionBuilder.GetEntityRef(DbExpression) 方法

定义

创建一个新的 DbEntityRefExpression ,用于检索结构形式的指定实体的引用。

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

参数

argument
DbExpression

提供实体的表达式。 此表达式必须具有实体结果类型。

返回

检索指定的实体的引用的新 DbEntityRefExpression。

例外

参数为 null。

参数没有实体结果类型。

适用于