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

もう 1 つの拡張機能。

戻り値

新しいサービス プロバイダーを必要とするすべてのオプションが同じかどうかを示す値。

注釈

詳細と例については、「 データベース プロバイダーと拡張機能の実装 」を参照してください。

適用対象