共用方式為


RelationalTypeMappingSourceDependencies 類別

定義

的服務相依性參數類別 RelationalTypeMappingSource

此類型通常由資料庫提供者 (和其他延伸模組) 使用。 它通常不會用於應用程式程式碼。

public sealed class RelationalTypeMappingSourceDependencies
public sealed class RelationalTypeMappingSourceDependencies : IEquatable<Microsoft.EntityFrameworkCore.Storage.RelationalTypeMappingSourceDependencies>
type RelationalTypeMappingSourceDependencies = class
type RelationalTypeMappingSourceDependencies = class
    interface IEquatable<RelationalTypeMappingSourceDependencies>
Public NotInheritable Class RelationalTypeMappingSourceDependencies
Public NotInheritable Class RelationalTypeMappingSourceDependencies
Implements IEquatable(Of RelationalTypeMappingSourceDependencies)
繼承
RelationalTypeMappingSourceDependencies
實作

備註

請勿直接從提供者或應用程式程式碼建構此類別的實例,因為建構函式簽章可能會在新增相依性時變更。 請改用建構函式中的這個類型,以便由相依性插入容器自動建立和插入實例。 若要建立已取代某些相依服務的實例,請先從相依性插入容器解析物件,然後使用 C# 'with' 運算子取代選取的服務。 請勿在此進程中的任何時間點呼叫建構函式。

服務存留期為 Singleton 。 這表示許多實例會使用 DbContext 每個服務的單一實例。 實作必須是安全線程。 此服務無法相依于註冊為 Scoped 的服務。

建構函式

RelationalTypeMappingSourceDependencies()

建立 的服務 RelationalTypeMappingSource 相依性參數物件。

請勿直接從提供者或應用程式程式碼呼叫此建構函式,因為它可能會在新增相依性時變更。 請改用建構函式中的這個類型,以便由相依性插入容器自動建立和插入實例。 若要建立已取代某些相依服務的實例,請先從相依性插入容器解析物件,然後使用 'With...' 取代選取的服務方法。 請勿在此進程中的任何時間點呼叫建構函式。

RelationalTypeMappingSourceDependencies(IEnumerable<IRelationalTypeMappingSourcePlugin>)

這是支援 Entity Framework Core 基礎結構的內部 API,不受與公用 API 相同的相容性標準。 它可能會在任何版本中變更或移除,而不需任何通知。 您應該只在程式碼中直接使用它,並特別小心,並知道這麼做可能會導致應用程式在更新至新的 Entity Framework Core 版本時失敗。

屬性

Plugins

取得外掛程式。

方法

<Clone>$()

的服務相依性參數類別 RelationalTypeMappingSource

此類型通常由資料庫提供者 (和其他延伸模組) 使用。 它通常不會用於應用程式程式碼。

Equals(Object)

的服務相依性參數類別 RelationalTypeMappingSource

此類型通常由資料庫提供者 (和其他延伸模組) 使用。 它通常不會用於應用程式程式碼。

Equals(RelationalTypeMappingSourceDependencies)

的服務相依性參數類別 RelationalTypeMappingSource

此類型通常由資料庫提供者 (和其他延伸模組) 使用。 它通常不會用於應用程式程式碼。

GetHashCode()

的服務相依性參數類別 RelationalTypeMappingSource

此類型通常由資料庫提供者 (和其他延伸模組) 使用。 它通常不會用於應用程式程式碼。

ToString()

的服務相依性參數類別 RelationalTypeMappingSource

此類型通常由資料庫提供者 (和其他延伸模組) 使用。 它通常不會用於應用程式程式碼。

With(IEnumerable<IRelationalTypeMappingSourcePlugin>)

複製此相依性參數物件,並取代一個服務。

運算子

Equality(RelationalTypeMappingSourceDependencies, RelationalTypeMappingSourceDependencies)

的服務相依性參數類別 RelationalTypeMappingSource

此類型通常由資料庫提供者 (和其他延伸模組) 使用。 它通常不會用於應用程式程式碼。

Inequality(RelationalTypeMappingSourceDependencies, RelationalTypeMappingSourceDependencies)

的服務相依性參數類別 RelationalTypeMappingSource

此類型通常由資料庫提供者 (和其他延伸模組) 使用。 它通常不會用於應用程式程式碼。

適用於