Пример #1
0
        protected override void ApplicationStarted(UmbracoApplicationBase umbracoApplication, ApplicationContext applicationContext)
        {
            var umbracoMigrations = new MigrationManager(applicationContext);

            // create the config table
            umbracoMigrations.ApplyMigration(CoreName, SemVersion.Parse(CoreVersion));

            // run any Aubergine Migrations in any IAubergineExtension assemblies
            umbracoMigrations.ApplyExtensionMigrations();

            // run all the aubergine configurations
            var aubergineMigrator = new AubergineInstallManager(
                applicationContext.DatabaseContext,
                applicationContext.ProfilingLogger.Logger);

            aubergineMigrator.Execute();
        }