Microsoft.EntityFrameworkCore.Infrastructure Microsoft.EntityFrameworkCore.Infrastructure Namespace

Classes

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.

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.

Extension methods for IAnnotatable.

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.

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.

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

Provides information about the environment an application is running in.

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.

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

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.

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.

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.

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.

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.

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.

Relational database specific extension methods for .

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.

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.

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.

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

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.

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.

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.

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.

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.

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.

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

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.

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.

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.

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.

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

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

Enums

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

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

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

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

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