System.Data.Entity.Migrations.Infrastructure Namespace

Provides base classes for code-based migrations.

  Class Description
Public class AutomaticDataLossException Represents an error that occurs when an automatic migration would result in data loss.
Public class AutomaticMigrationsDisabledException Represents an error that occurs when there are pending model changes after applying the last migration and automatic migration is disabled.
Public class MigrationsException Represents errors that occur inside the Code First Migrations pipeline.
Public class MigrationsLogger Base class for loggers that can be used for the migrations process.
Public class MigratorBase Base class for decorators that wrap the core DbMigrator.
Public class MigratorLoggingDecorator Decorator to provide logging during migrations operations.
Public class MigratorScriptingDecorator Represents a 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
Public interface IMigrationMetadata Provides additional metadata about a code-based migration.