DbExpressionBuilder.GetEntityRef(DbExpression) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
建立新的 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。
引數沒有實體結果類型。