MigrateDatabaseToLatestVersion(TContext, TMigrationsConfiguration) Class
Entity Framework 5.0
An implementation of IDatabaseInitializer that will use Code First Migrations to update the database to the latest migration.
Namespace: System.Data.Entity
Assembly: EntityFramework (in EntityFramework.dll)
The MigrateDatabaseToLatestVersion(TContext, TMigrationsConfiguration) type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | MigrateDatabaseToLatestVersion(TContext, TMigrationsConfiguration)() | Initializes a new instance of the MigrateDatabaseToLatestVersion class. |
![]() | MigrateDatabaseToLatestVersion(TContext, TMigrationsConfiguration)(String) | Initializes a new instance of the MigrateDatabaseToLatestVersion class that will use a specific connection string from the configuration file to connect to the database to perform the migration. |
| Name | Description | |
|---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | InitializeDatabase | Executes the strategy to initialize the database for the given context. |
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
Show:
.gif?cs-save-lang=1&cs-lang=fsharp)
.gif?cs-save-lang=1&cs-lang=fsharp)