Habanero.DB.DBMigrator.MigrateToLatestVersion C# (CSharp) Method

MigrateToLatestVersion() public method

Performs all migrations available from the current version number to the most recent version available. This is the common-case method used to carry out a migration, unless you require more specific control.
public MigrateToLatestVersion ( ) : void
return void
        public void MigrateToLatestVersion() {
            var latestVersion = this.LatestVersion();
            if (CurrentVersion() < latestVersion) {
                MigrateTo(latestVersion);
            }
        }