MigrateDatabaseToLatestVersion(Of 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.
System.Object
System.Data.Entity.MigrateDatabaseToLatestVersion(Of TContext, TMigrationsConfiguration)
System.Data.Entity.MigrateDatabaseToLatestVersion(Of TContext, TMigrationsConfiguration)
Namespace: System.Data.Entity
Assembly: EntityFramework (in EntityFramework.dll)
'Declaration Public Class MigrateDatabaseToLatestVersion(Of TContext As DbContext, TMigrationsConfiguration As {New, DbMigrationsConfiguration(Of TContext)}) _ Implements IDatabaseInitializer(Of TContext) 'Usage Dim instance As MigrateDatabaseToLatestVersion(Of TContext, TMigrationsConfiguration)
Type Parameters
- TContext
- TMigrationsConfiguration
The MigrateDatabaseToLatestVersion(Of TContext, TMigrationsConfiguration) type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | MigrateDatabaseToLatestVersion(Of TContext, TMigrationsConfiguration) | Initializes a new instance of the MigrateDatabaseToLatestVersion class. |
![]() | MigrateDatabaseToLatestVersion(Of 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:
