Interface ICoreSingletonOptions
- Namespace
- Microsoft.EntityFrameworkCore.Infrastructure
- Assembly
- Microsoft.EntityFrameworkCore.dll
Options set at the IServiceProvider singleton level to control core options.
public interface ICoreSingletonOptions : ISingletonOptions
- Inherited Members
Remarks
The service lifetime is Singleton. This means a single instance is used by many DbContext instances. The implementation must be thread-safe. This service cannot depend on services registered as Scoped.
See Implementation of database providers and extensions for more information and examples.
Properties
AreDetailedErrorsEnabled
Reflects the option set by EnableDetailedErrors(bool).
bool AreDetailedErrorsEnabled { get; }
Property Value
AreThreadSafetyChecksEnabled
Reflects the option set by EnableThreadSafetyChecks(bool).
bool AreThreadSafetyChecksEnabled { get; }
Property Value
RootApplicationServiceProvider
The root service provider for the application, if available. />.
IServiceProvider? RootApplicationServiceProvider { get; }