C# Class BExIS.Ext.Model.DB.DefaultMigrationRunner

Runs the migrations against the target database, there should be other runners to i.e., generate scripts, etc
Inheritance: IMigrationRunner
显示文件 Open project: BEXIS2/Core

Public Methods

Method Description
DefaultMigrationRunner ( object config ) : System
Install ( string moduleCode, System.Version version, List migrationContainers ) : bool
Uninstall ( string moduleCode, System.Version version, List migrationContainers ) : bool

Private Methods

Method Description
diff ( System.Version v1, System.Version v2, List migrations ) : List

return migrations that their version is greater than v1 and less than or equal to v2

extractMigrations ( List migrationContainers ) : List

Method Details

DefaultMigrationRunner() public method

public DefaultMigrationRunner ( object config ) : System
config object
return System

Install() public method

public Install ( string moduleCode, System.Version version, List migrationContainers ) : bool
moduleCode string
version System.Version
migrationContainers List
return bool

Uninstall() public method

public Uninstall ( string moduleCode, System.Version version, List migrationContainers ) : bool
moduleCode string
version System.Version
migrationContainers List
return bool