共用方式為


DbExpressionBuilder.GetEntityRef(DbExpression) 方法

定義

建立新的 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 沒有實體結果型別。

適用於