語言

DbContextOptionsExtensionInfo.ShouldUseSameServiceProvider 方法

定義

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

public abstract bool ShouldUseSameServiceProvider(Microsoft.EntityFrameworkCore.Infrastructure.DbContextOptionsExtensionInfo other);
abstract member ShouldUseSameServiceProvider : Microsoft.EntityFrameworkCore.Infrastructure.DbContextOptionsExtensionInfo -> bool
Public MustOverride Function ShouldUseSameServiceProvider (other As DbContextOptionsExtensionInfo) As Boolean

參數

other
DbContextOptionsExtensionInfo

另一個分機。

傳回

一個表示所有需要更換服務提供者的選項是否相同的數值。

備註

更多資訊與範例請參見 資料庫提供者與擴充功能的實作 。

適用於