BExIS.Ext.Model.DB.DefaultMigrationRunner.Install C# (CSharp) Method

Install() public method

public Install ( string moduleCode, System.Version version, List migrationContainers ) : bool
moduleCode string
version System.Version
migrationContainers List
return bool
        public bool Install(string moduleCode, Version version, List<System.Reflection.Assembly> migrationContainers)
        {
            // compute the diff
            // sort
            // run
            // update version provider
            // report
            IVersionInfoProvider versionProvider = new DBVersionProvider();
            Version v1 = versionProvider.GetLatestVersion(moduleCode);
            List<Migration> allMigrations = extractMigrations(migrationContainers);
            List<Migration> effectiveMigrations = diff(v1, version, allMigrations);
            IMigrationSorter sorter = new BuildNumberSorter();
            effectiveMigrations = sorter.Sort(effectiveMigrations);
            // ...
            throw new NotImplementedException();
        }