Runs migrations using source files in the current directory.
Namespace:
Mindscape.LightSpeed.MigrationsAssembly: Mindscape.LightSpeed.Migrations (in Mindscape.LightSpeed.Migrations.dll)
Version: 3.1.0.0 (4.0.0.0)
Syntax
C# |
---|
public static void Migrate( ProviderType provider, string connectionString, Nullable<MigrationVersion> toVersion ) |
Visual Basic (Declaration) |
---|
Public Shared Sub Migrate ( _ provider As ProviderType, _ connectionString As String, _ toVersion As Nullable(Of MigrationVersion) _ ) |
Parameters
- provider
- Type: Mindscape.LightSpeed.Migrations..::.ProviderType
The type of database against which to run the migrations.
- connectionString
- Type: System..::.String
The database connection string.
- toVersion
- Type: System..::.Nullable<(Of <(MigrationVersion>)>)
The version to migrate to, or null to migrate up to the final version.