System.Data.Entity.Migrations.Infrastructure Namespace
The System.Data.Entity.Migrations.Infrastructure namespace provides base classes for the code-based migrations.
Class | Description | |
---|---|---|
![]() | AutomaticDataLossException | Represents an error that occurs when an automatic migration would result in data loss. |
![]() | AutomaticMigrationsDisabledException | Represents an error that occurs when there are pending model changes after applying the last migration and automatic migration is disabled. |
![]() | MigrationsException | Represents errors that occur inside the Code First Migrations pipeline. |
![]() | MigrationsLogger | Base class for loggers that can be used for the migrations process. |
![]() | MigrationsPendingException | Thrown when an operation can't be performed because there are existing migrations that have not been applied to the database. |
![]() | MigratorBase | Represents a base class for decorators that wrap the core DbMigrator. |
![]() | MigratorLoggingDecorator | Decorator to provide logging during migrations operations.. |
![]() | MigratorScriptingDecorator | Decorator to produce a SQL script instead of applying changes to the database. Using this decorator to wrap DbMigrator will prevent DbMigrator from applying any changes to the target database. |
Interface | Description | |
---|---|---|
![]() | IDbMigration | Explicitly implemented by DbMigration to prevent certain members from showing up in the IntelliSense of scaffolded migrations. |
![]() | IMigrationMetadata | Provides additional metadata about a code-based migration. |