Share via


DbContextOptionsExtensionInfo.ShouldUseSameServiceProvider Method

Definition

Returns a value indicating whether all of the options used in GetServiceProviderHashCode() are the same as in the given extension.

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

Parameters

other
DbContextOptionsExtensionInfo

The other extension.

Returns

A value indicating whether all of the options that require a new service provider are the same.

Remarks

See Implementation of database providers and extensions for more information and examples.

Applies to