共用方式為


DbExpressionBuilder.GetEntityRef(DbExpression) 方法

定義

建立新的 DbEntityRefExpression ,以結構形式擷取指定實體的 ref。

public static System.Data.Entity.Core.Common.CommandTrees.DbEntityRefExpression GetEntityRef(this System.Data.Entity.Core.Common.CommandTrees.DbExpression argument);
static member GetEntityRef : System.Data.Entity.Core.Common.CommandTrees.DbExpression -> System.Data.Entity.Core.Common.CommandTrees.DbEntityRefExpression
<Extension()>
Public Function GetEntityRef (argument As DbExpression) As DbEntityRefExpression

參數

argument
DbExpression

提供實體的運算式。 這個運算式必須是實體結果型別。

傳回

擷取指定之實體參考的新 DbEntityRefExpression。

例外狀況

引數為 null。

引數沒有實體結果類型。

適用於