Runs migrations from the specified source.

Namespace:  Mindscape.NHibernateModelDesigner.Migrations
Assembly:  Mindscape.NHibernateModelDesigner.Migrations (in Mindscape.NHibernateModelDesigner.Migrations.dll)
Version: 3.1.0.0 (3.1.0.0)

Syntax

C#
public static void Migrate(
	IMigrationLoader source,
	ProviderType provider,
	string connectionString,
	Nullable<MigrationVersion> toVersion
)
Visual Basic (Declaration)
Public Shared Sub Migrate ( _
	source As IMigrationLoader, _
	provider As ProviderType, _
	connectionString As String, _
	toVersion As Nullable(Of MigrationVersion) _
)

Parameters

source
Type: Mindscape.NHibernateModelDesigner.Migrations..::.IMigrationLoader
The source for the migrations to run.
provider
Type: Mindscape.NHibernateModelDesigner.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.

See Also