Microsoft.EntityFrameworkCore.Infrastructure Microsoft.EntityFrameworkCore.Infrastructure Namespace

Classes

AccessorExtensions AccessorExtensions

Extension methods for IInfrastructure<T>.

These methods are typically used by database providers (and other extensions). They are generally not used in application code.

IInfrastructure<T> is used to hide properties that are not intended to be used in application code but can be used in extension methods written by database providers etc.

Annotatable Annotatable

Base class for types that support reading and writing annotations.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

AnnotatableExtensions AnnotatableExtensions

Extension methods for IAnnotatable.

Annotation Annotation

An arbitrary piece of metadata that can be stored on an object that implements IAnnotatable.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

DatabaseFacade DatabaseFacade

Provides access to database related information and operations for a context. Instances of this class are typically obtained from Database and it is not designed to be directly constructed in your application code.

DbContextAttribute DbContextAttribute

Identifies the DbContext that a class belongs to. For example, this attribute is used to identify which context a migration applies to.

DbContextFactoryOptions DbContextFactoryOptions

Provides information about the environment an application is running in.

DesignTimeProviderServicesAttribute DesignTimeProviderServicesAttribute

Identifies where to find the design time services for a given database provider. This attribute should be present in the primary assembly of the database provider.

This attribute is typically used by database providers (and other extensions). It is generally not used in application code.

EntityFrameworkServiceCollectionExtensions EntityFrameworkServiceCollectionExtensions

Extension methods for setting up Entity Framework related services in an .

InMemoryDbContextOptionsBuilder InMemoryDbContextOptionsBuilder

Allows in-memory specific configuration to be performed on DbContextOptions.

Instances of this class are returned from a call to UseInMemoryDatabase(DbContextOptionsBuilder, Action<InMemoryDbContextOptionsBuilder>) and it is not designed to be directly constructed in your application code.

ModelCacheKey ModelCacheKey

A key that uniquely identifies the model for a given context. This is used to store and lookup a cached model for a given context. This default implementation uses the context type as they key, thus assuming that all contexts of a given type have the same model.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

ModelCacheKeyFactory ModelCacheKeyFactory

Creates keys that uniquely identifies the model for a given context. This is used to store and lookup a cached model for a given context. This default implementation uses the context type as they key, thus assuming that all contexts of a given type have the same model.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

ModelCustomizer ModelCustomizer

Builds the model for a given context. This default implementation builds the model by calling OnConfiguring(DbContextOptionsBuilder) on the context.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

ModelSnapshot ModelSnapshot
ModelSource ModelSource

A base implementation of IModelSource that produces a model based on the DbSet<TEntity> properties exposed on the context. The model is cached to avoid recreating it every time it is requested.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

RelationalDbContextOptionsBuilder<TBuilder, TExtension> RelationalDbContextOptionsBuilder(Of TBuilder, TExtension)

Allows relational database specific configuration to be performed on DbContextOptions.

Instances of this class are typically returned from methods that configure the context to use a particular relational database provider.

RelationalOptionsExtension RelationalOptionsExtension
RelationalServiceCollectionExtensions RelationalServiceCollectionExtensions

Relational database specific extension methods for .

SensitiveDataLogger<T> SensitiveDataLogger(Of T)

A wrapping logger for which logging of sensitive data can be enabled or disabled.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

SqliteDbContextOptionsBuilder SqliteDbContextOptionsBuilder

Allows SQLite specific configuration to be performed on DbContextOptions.

Instances of this class are returned from a call to UseSqlite(DbContextOptionsBuilder, String, Action<SqliteDbContextOptionsBuilder>) and it is not designed to be directly constructed in your application code.

SqlServerDbContextOptionsBuilder SqlServerDbContextOptionsBuilder

Allows SQL Server specific configuration to be performed on DbContextOptions.

Instances of this class are returned from a call to UseSqlServer(DbContextOptionsBuilder, String, Action<SqlServerDbContextOptionsBuilder>) and it is not designed to be directly constructed in your application code.

WarningsConfigurationBuilder WarningsConfigurationBuilder

Configures the runtime behavior of warnings generated by Entity Framework. You can set a default behavior and behaviors for each warning type.

This class is used within the ConfigureWarnings(Action<WarningsConfigurationBuilder>) API and it is not designed to be directly constructed in your application code.

Interfaces

IAnnotatable IAnnotatable

A class that exposes annotations. Annotations allow for arbitrary metadata to be stored on an object.

This interface is typically used by database providers (and other extensions). It is generally not used in application code.

IAnnotation IAnnotation

An arbitrary piece of metadata that can be stored on an object that implements IAnnotatable.

This interface is typically used by database providers (and other extensions). It is generally not used in application code.

IDbContextFactory<TContext> IDbContextFactory(Of TContext)

A factory for creating derived DbContext instances. Implement this interface to enable design-time services for context types that do not have a public default constructor. At design-time, derived DbContext instances can be created in order to enable specific design-time experiences such as Migrations. Design-time services will automatically discover implementations of this interface that are in the same assembly as the derived context.

IDbContextOptions IDbContextOptions

The options to be used by a DbContext. You normally override OnConfiguring(DbContextOptionsBuilder) or use a DbContextOptionsBuilder to create instances of classes that implement this interface, they are not designed to be directly created in your application code.

IDbContextOptionsBuilderInfrastructure IDbContextOptionsBuilderInfrastructure

Explicitly implemented by DbContextOptionsBuilder to hide methods that are used by database provider extension methods but not intended to be called by application developers.

This interface is typically used by database providers (and other extensions). It is generally not used in application code.

IDbContextOptionsExtension IDbContextOptionsExtension

Interface for extensions that are stored in Extensions.

This interface is typically used by database providers (and other extensions). It is generally not used in application code.

IDesignTimeServices IDesignTimeServices

Enables configuring design-time services. Tools will automatically discover implementations of this interface that are in the startup assembly.

IInfrastructure<T> IInfrastructure(Of T)

This interface is explicitly implemented by type to hide properties that are not intended to be used in application code but can be used in extension methods written by database providers etc.

This interface is typically used by database providers (and other extensions). It is generally not used in application code.

IModelCacheKeyFactory IModelCacheKeyFactory

Creates keys that uniquely identifies the model for a given context. This is used to store and lookup a cached model for a given context.

This interface is typically used by database providers (and other extensions). It is generally not used in application code.

IModelCustomizer IModelCustomizer

Performs additional configuration of the model in addition to what is discovered by convention.

This interface is typically used by database providers (and other extensions). It is generally not used in application code.

IModelSource IModelSource

Produces an IModel based on a context. This is typically implemented by database providers to ensure that any conventions and validation specific to their database are used.

This interface is typically used by database providers (and other extensions). It is generally not used in application code.

ISensitiveDataLogger ISensitiveDataLogger

An for which logging of sensitive data can be enabled or disabled.

ISensitiveDataLogger<T> ISensitiveDataLogger(Of T)

An for which logging of sensitive data can be enabled or disabled.

Enums

CoreEventId CoreEventId

Values that are used as the eventId when logging messages from the core Entity Framework components.

DesignEventId DesignEventId
InMemoryEventId InMemoryEventId

Values that are used as the eventId when logging messages from the in-memory database provider via .

RelationalDesignEventId RelationalDesignEventId
RelationalEventId RelationalEventId

Values that are used as the eventId when logging messages from a relational database provider via .

SqliteDesignEventId SqliteDesignEventId

Values that are used as the eventId when logging messages from the SQLite Design Entity Framework Core components.

SqlServerDesignEventId SqlServerDesignEventId

Values that are used as the eventId when logging messages from the SQL Server Design Entity Framework Core components.