DbExpressionBuilder.GetRefKey(DbExpression) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立一個新文 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
提供參考的表達式。 此表達式必須有一個帶有 Entity 元素類型的參考類型。
傳回
一個新的 DbRefKeyExpression,用來取得指定參考的鍵值。
例外狀況
argument 為 null。
argument 沒有參考結果類型。