語言

RelationalOptionsExtension.RelationalExtensionInfo 類別

定義

[System.Runtime.CompilerServices.Nullable(0)]
protected abstract class RelationalOptionsExtension.RelationalExtensionInfo : Microsoft.EntityFrameworkCore.Infrastructure.DbContextOptionsExtensionInfo
protected abstract class RelationalOptionsExtension.RelationalExtensionInfo : Microsoft.EntityFrameworkCore.Infrastructure.DbContextOptionsExtensionInfo
Protected MustInherit Class RelationalOptionsExtension.RelationalExtensionInfo
Inherits DbContextOptionsExtensionInfo
繼承
RelationalOptionsExtension.RelationalExtensionInfo
屬性

建構函式

名稱 Description
RelationalOptionsExtension.RelationalExtensionInfo(IDbContextOptionsExtension)

建立 RelationalOptionsExtension.RelationalExtensionInfo 一個包含該擴充功能的資訊/元資料的新實例。

屬性

名稱 Description
Extension

此實例包含元資料的擴充功能。

IsDatabaseProvider

沒錯,因為這是資料庫提供者的基底類別。

LogFragment

用於記錄的訊息片段,通常包含任何已設定的有用非預設選項資訊。

方法

名稱 Description
GetServiceProviderHashCode()

回傳一個由任何選項產生的雜湊碼,這些選項會產生 IServiceProvider 新的新值。 例如,如果這些選項影響單一服務。 然而,大多數擴充功能沒有此類選項,理應回傳為零。

PopulateDebugInfo(IDictionary<String,String>)

會儲存一個字典,內容可能在不同擴充使用間會變動,以便與先前的配置比較,並記錄差異。 字典鍵應以副檔名作為前綴。 例如: "SqlServer:" 。

(繼承來源 DbContextOptionsExtensionInfo)
ShouldUseSameServiceProvider(DbContextOptionsExtensionInfo)

回傳一個值,表示所有 GetServiceProviderHashCode() 使用的期權是否與該擴展相同。

適用於