protected void Application_Start() { logger.Info("Application Start"); RouteTable.Routes.IgnoreRoute("secure/admin/errors"); AreaRegistration.RegisterAllAreas(); WebApiConfig.Register(GlobalConfiguration.Configuration); FiltersConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); GlobalConfig.CustomizeConfig(GlobalConfiguration.Configuration); ViewEngines.Engines.RemoveAt(0); // WEB Form engine CoreBootstraper.Init(); WebInfraBootstrapper.Init(); CoreBootstraper.NotifyDbMigrated(); //FilterProviders.Providers.Add(new FilterProvider()); }
void IAdminService.Migrate(string target, bool isDowngrade) { try { DatabaseHelper.Migrate(target, isDowngrade); } catch (DataAccessException ex) { throw new CoreServiceException(ex.Message, ex); } CoreBootstraper.NotifyDbMigrated(); }