Export (0) Print
Expand All

System.Data.Entity.Migrations.Infrastructure Namespace

[This page is specific to the Entity Framework version 6. The latest version is available as the 'Entity Framework' NuGet package. For more information about Entity Framework, see msdn.com/data/ef.]

The System.Data.Entity.Migrations.Infrastructure namespace provides base classes for the code-based migrations.

  ClassDescription
Public classAutomaticDataLossExceptionRepresents an error that occurs when an automatic migration would result in data loss.
Public classAutomaticMigrationsDisabledExceptionRepresents an error that occurs when there are pending model changes after applying the last migration and automatic migration is disabled.
Public classMigrationsExceptionRepresents errors that occur inside the Code First Migrations pipeline.
Public classMigrationsLoggerBase class for loggers that can be used for the migrations process.
Public classMigrationsPendingExceptionThrown when an operation can't be performed because there are existing migrations that have not been applied to the database.
Public classMigratorBaseRepresents a base class for decorators that wrap the core DbMigrator.
Public classMigratorLoggingDecoratorDecorator to provide logging during migrations operations..
Public classMigratorScriptingDecoratorDecorator 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.

  InterfaceDescription
Public interfaceIDbMigrationExplicitly implemented by DbMigration to prevent certain members from showing up in the IntelliSense of scaffolded migrations.
Public interfaceIMigrationMetadataProvides additional metadata about a code-based migration.
Show:
© 2014 Microsoft