Namespace Microsoft.EntityFrameworkCore.Migrations
Classes
- HistoryRepository
A base class for the repository used to access the '__EFMigrationsHistory' table that tracks metadata about EF Core Migrations such as which migrations have been applied.
- HistoryRepositoryDependencies
Service dependencies parameter class for HistoryRepository
This type is typically used by database providers (and other extensions). It is generally not used in application code.
- HistoryRow
An entity type that represents a row in the Migrations history table.
- Migration
A base class inherited by each EF Core migration.
- MigrationAttribute
Indicates that a class is a Migration and provides its identifier.
- MigrationBuilder
A builder providing a fluent-like API for building MigrationOperations.
- MigrationCommand
Represents a command ready to be sent to the database to migrate it.
- MigrationCommandListBuilder
A builder for creating a list of MigrationCommands that can then be executed to migrate a database.
- MigrationsAnnotationProvider
A base class inherited by database providers that gives access to annotations used by EF Core Migrations when generating removal operations for various elements of the IRelationalModel.
- MigrationsAnnotationProviderDependencies
Service dependencies parameter class for MigrationsAnnotationProvider
This type is typically used by database providers (and other extensions). It is generally not used in application code.
- MigrationsAssemblyExtensions
Extension methods for IMigrationsAssembly.
- MigrationsSqlGenerator
Generates the SQL in MigrationCommand objects that can then be executed or scripted from a list of MigrationOperations.
- MigrationsSqlGeneratorDependencies
Service dependencies parameter class for MigrationsSqlGenerator
This type is typically used by database providers (and other extensions). It is generally not used in application code.
Interfaces
- IHistoryRepository
An interface for the repository used to access the '__EFMigrationsHistory' table that tracks metadata about EF Core Migrations such as which migrations have been applied.
- IMigrationCommandExecutor
A service for executing migration commands against a database.
- IMigrationsAnnotationProvider
A service typically implemented by database providers that gives access to annotations used by EF Core Migrations when generating removal operations for various elements of the IRelationalModel. The annotations stored in the relational model are provided by IRelationalAnnotationProvider.
- IMigrationsAssembly
A service representing an assembly containing EF Core Migrations.
- IMigrationsIdGenerator
A service for generating migration identifiers from names and names from identifiers.
- IMigrationsModelDiffer
A service for finding differences between two IRelationalModels and transforming those differences into MigrationOperations that can be used to update the database.
- IMigrationsSqlGenerator
A service for generating MigrationCommand objects that can then be executed or scripted from a list of MigrationOperations.
- IMigrator
The main service used to generated an EF Core Migrations script or migrate a database directly.
Enums
- MigrationsSqlGenerationOptions
The options to use when generating SQL for migrations.
- ReferentialAction
The action that a database may take when handling a foreign key constraint as part of an update or delete.