DbExpressionBuilder.GetEntityRef(DbExpression) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
创建一个新 DbEntityRefExpression 项,以结构形式检索指定实体的 ref。
public:
[System::Runtime::CompilerServices::Extension]
static System::Data::Common::CommandTrees::DbEntityRefExpression ^ GetEntityRef(System::Data::Common::CommandTrees::DbExpression ^ argument);
public static System.Data.Common.CommandTrees.DbEntityRefExpression GetEntityRef(this System.Data.Common.CommandTrees.DbExpression argument);
static member GetEntityRef : System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbEntityRefExpression
<Extension()>
Public Function GetEntityRef (argument As DbExpression) As DbEntityRefExpression
参数
- argument
- DbExpression
提供实体的表达式。 此表达式必须具有实体结果类型。
返回
一个新的 DbEntityRefExpression,用于检索对指定实体的引用。
例外
argument 为 null。
argument 没有实体结果类型。