語言

IEntityMaterializerSource 介面

定義

警告

This interface has been obsoleted, use IStructuralTypeMaterializerSource instead.

這個介面已經過時,請改用 IStructuralTypeMaterializerSource 。

[System.Obsolete("This interface has been obsoleted, use IStructuralTypeMaterializerSource instead.", true)]
public interface IEntityMaterializerSource
public interface IEntityMaterializerSource
[<System.Obsolete("This interface has been obsoleted, use IStructuralTypeMaterializerSource instead.", true)>]
type IEntityMaterializerSource = interface
type IEntityMaterializerSource = interface
Public Interface IEntityMaterializerSource
衍生
屬性

備註

服役期間為 Singleton。 這表示單一實例會被多個 DbContext 實例使用。 實作必須是執行緒安全的。 此服務無法依賴於註冊為 Scoped的服務。

更多資訊與範例請參閱「 資料庫提供者與擴充的實作 」以及「 EF Core 查詢如何運作 」。

方法

名稱 Description
CreateMaterializeExpression(EntityMaterializerSourceParameters, Expression)
已淘汰.

建立 Expression 一棵表示建立實體實例的樹狀結構。

此方法通常由資料庫提供者(及其他擴充)使用。 它通常不被用於應用程式程式碼中。

CreateMaterializeExpression(IEntityType, String, Expression)
已淘汰.

建立 Expression 一棵表示建立實體實例的樹狀結構。

此方法通常由資料庫提供者(及其他擴充)使用。 它通常不被用於應用程式程式碼中。

CreateReadValueExpression(Expression, Type, Int32, IPropertyBase)
已淘汰.

建立 Expression 一棵樹狀結構,表示從 ValueBuffer

此方法通常由資料庫提供者(及其他擴充)使用。 它通常不被用於應用程式程式碼中。

GetEmptyMaterializer(IEntityType)
已淘汰.

回傳一個快取代理,建立給定實體類型的空實例。

此方法通常由資料庫提供者(及其他擴充)使用。 它通常不被用於應用程式程式碼中。

GetMaterializer(IEntityType)
已淘汰.

回傳一個快取代理,建立該實體類型的實例。

此方法通常由資料庫提供者(及其他擴充)使用。 它通常不被用於應用程式程式碼中。

適用於