Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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.

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 classMigratorBaseBase 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.
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.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.