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 沒有參考結果型別。

適用於