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

Namespace:   System.Data.Entity.Migrations
Assembly:  EntityFramework (in EntityFramework.dll)


[SuppressMessageAttribute("Microsoft.Maintainability", "CA1506:AvoidExcessiveClassCoupling")]
public class DbMigrator : MigratorBase

NameDescription
System_CAPS_pubmethodDbMigrator(DbMigrationsConfiguration)

Initializes a new instance of the DbMigrator class.

NameDescription
System_CAPS_pubpropertyConfiguration

Gets the configuration that is being used for the migration process.(Overrides MigratorBase.Configuration.)

NameDescription
System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetDatabaseMigrations()

Gets all migrations that have been applied to the target database.(Overrides MigratorBase.GetDatabaseMigrations().)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetLocalMigrations()

Gets all migrations that are defined in the configured migrations assembly.(Overrides MigratorBase.GetLocalMigrations().)

System_CAPS_pubmethodGetPendingMigrations()

Gets all migrations that are defined in the assembly but haven't been applied to the target database.(Overrides MigratorBase.GetPendingMigrations().)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

System_CAPS_pubmethodUpdate()

Updates the target database to the latest migration.(Inherited from MigratorBase.)

System_CAPS_pubmethodUpdate(String)

Updates the target database to a given migration.(Overrides MigratorBase.Update(String).)

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticInitialDatabase

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.