DbExpressionBuilder.GetEntityRef(DbExpression) 方法

定義

建立一個新 Java DbEntityRefExpression ,以結構形式取得指定實體的參考。

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 沒有實體結果類型。

適用於