DbMigrator Class
DbMigrator 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
Assembly: EntityFramework (in EntityFramework.dll)
System.Data.Entity.Migrations.Infrastructure.MigratorBase
System.Data.Entity.Migrations.DbMigrator
Name | Description | |
---|---|---|
![]() | DbMigrator(DbMigrationsConfiguration) | Initializes a new instance of the DbMigrator class. |
Name | Description | |
---|---|---|
![]() | Configuration | Gets the configuration that is being used for the migration process.(Overrides MigratorBase.Configuration.) |
Name | Description | |
---|---|---|
![]() | Equals(Object) | (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. |
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.