Export (0) Print
Expand All

System.Data.Entity.Migrations 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 namespace contains classes related to code-based migrations and their configurations.

Public classDbMigrationRepresents the base class for code-based migrations. Entity Framework Migrations APIs are not designed to accept input provided by untrusted sources (such as the end user of an application). If input is accepted from such sources it should be validated before being passed to these APIs to protect against SQL injection attacks etc.
Public classDbMigrationsConfigurationConfiguration relating to the use of migrations for a given model. You will typically create a configuration class that derives from DbMigrationsConfiguration<TContext> rather than using this class.
Public classDbMigrationsConfiguration<TContext>Configuration relating to the use of migrations for a given model.
Public classDbMigratorDbMigrator is used to apply existing migrations to a database. DbMigrator can be used to upgrade and downgrade to any given migration. To scaffold migrations based on changes to your model use MigrationScaffolder
Public classDbSetMigrationsExtensionsA set of extension methods for IDbSet<TEntity>
© 2014 Microsoft