Namespace Microsoft.EntityFrameworkCore.Infrastructure
Classes
- EntityFrameworkRelationalServicesBuilder
A builder API designed for relational database providers to use when registering services.
Providers should create an instance of this class, use its methods to register services, and then call TryAddCoreServices() to fill out the remaining Entity Framework services.
Entity Framework ensures that services are registered with the appropriate scope. In some cases a provider may register a service with a different scope, but great care must be taken that all its dependencies can handle the new scope, and that it does not cause issue for services that depend on it.
- ModelSnapshot
Base class for the snapshot of the Microsoft.EntityFrameworkCore.Metadata.IModel state generated by Migrations.
- RelationalDbContextOptionsBuilder<TBuilder, TExtension>
Allows relational database specific configuration to be performed on Microsoft.EntityFrameworkCore.DbContextOptions.
Instances of this class are typically returned from methods that configure the context to use a particular relational database provider.
- RelationalModelCustomizer
Builds the model for a given context.
This type is typically used by database providers (and other extensions). It is generally not used in application code.
The service lifetime is Singleton. This means a single instance is used by many Microsoft.EntityFrameworkCore.DbContext instances. The implementation must be thread-safe. This service cannot depend on services registered as Scoped.
- RelationalModelValidator
The validator that enforces rules common for all relational providers.
The service lifetime is Singleton. This means a single instance is used by many Microsoft.EntityFrameworkCore.DbContext instances. The implementation must be thread-safe. This service cannot depend on services registered as Scoped.
- RelationalModelValidatorDependencies
Service dependencies parameter class for RelationalModelValidator
This type is typically used by database providers (and other extensions). It is generally not used in application code.
Do not construct instances of this class directly from either provider or application code as the constructor signature may change as new dependencies are added. Instead, use this type in your constructor so that an instance will be created and injected automatically by the dependency injection container. To create an instance with some dependent services replaced, first resolve the object from the dependency injection container, then replace selected services using the 'With...' methods. Do not call the constructor at any point in this process.
The service lifetime is Singleton. This means a single instance of each service is used by many Microsoft.EntityFrameworkCore.DbContext instances. The implementation must be thread-safe. This service cannot depend on services registered as Scoped.
- RelationalOptionsExtension
Represents options managed by the relational database providers. These options are set using Microsoft.EntityFrameworkCore.DbContextOptionsBuilder.
Instances of this class are designed to be immutable. To change an option, call one of the 'With...' methods to obtain a new instance with the option changed.
- RelationalOptionsExtension.RelationalExtensionInfo
Information/metadata for a RelationalOptionsExtension.
- RelationalPropertyExtensions
Relational extension methods for Microsoft.EntityFrameworkCore.Metadata.IProperty.
Interfaces
- IRelationalDbContextOptionsBuilderInfrastructure
Explicitly implemented by RelationalDbContextOptionsBuilder<TBuilder, TExtension> to hide methods that are used by database provider extension methods but not intended to be called by application developers.