Share via


DbExpressionBuilder.GetRefKey(DbExpression) 方法

定义

创建一个新的 DbRefKeyExpression,它以结构化形式检索指定引用的键值。

public:
[System::Runtime::CompilerServices::Extension]
 static System::Data::Common::CommandTrees::DbRefKeyExpression ^ GetRefKey(System::Data::Common::CommandTrees::DbExpression ^ argument);
public static System.Data.Common.CommandTrees.DbRefKeyExpression GetRefKey (this System.Data.Common.CommandTrees.DbExpression argument);
static member GetRefKey : System.Data.Common.CommandTrees.DbExpression -> System.Data.Common.CommandTrees.DbRefKeyExpression
<Extension()>
Public Function GetRefKey (argument As DbExpression) As DbRefKeyExpression

参数

argument
DbExpression

提供引用的表达式。 此表达式的引用类型必须具有实体元素类型。

返回

新 DbRefKeyExpression 检索指定引用的键值。

例外

argument 为 null。

argument 没有引用结果类型。

适用于