DbMigrator Class
Entity Framework 5.0
Used to apply existing migrations to a database. This class can be used to upgrade and downgrade to any given migration. To scaffold migrations based on changes to your model, use MigrationScaffolder.
System.Object
System.Data.Entity.Migrations.Infrastructure.MigratorBase
System.Data.Entity.Migrations.DbMigrator
System.Data.Entity.Migrations.Infrastructure.MigratorBase
System.Data.Entity.Migrations.DbMigrator
Namespace: System.Data.Entity.Migrations
Assembly: EntityFramework (in EntityFramework.dll)
The DbMigrator type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Configuration | Gets the configuration that is being used for the migration process. (Overrides MigratorBase.Configuration.) |
| Name | Description | |
|---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetDatabaseMigrations | Gets all migrations that have been applied to the target database. (Overrides MigratorBase.GetDatabaseMigrations.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetLocalMigrations | Gets all migrations that are defined in the configured migrations assembly. (Overrides MigratorBase.GetLocalMigrations.) |
![]() | GetPendingMigrations | Gets all migrations that are defined in the assembly but haven't been applied to the target database. (Overrides MigratorBase.GetPendingMigrations.) |
![]() | GetType | (Inherited from Object.) |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
![]() | Update | Updates the target database to the latest migration. (Inherited from MigratorBase.) |
![]() | Update(String) | Updates the target database to a given migration. (Overrides MigratorBase.Update(String).) |
| Name | Description | |
|---|---|---|
![]() ![]() | InitialDatabase | Migration Id representing the state of the database before any migrations are applied. |
Show:
