예제 #1
0
 protected void Application_Start()
 {
     Database.SetInitializer(
         new MigrateDatabaseToLatestVersion <Models.WeatherAContext,
                                             Migrations.Configuration>());
     CheckRolesAndSuperUser();
     InstallHelper.InitialConfiguration();
     AreaRegistration.RegisterAllAreas();
     GlobalConfiguration.Configure(WebApiConfig.Register);
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BundleConfig.RegisterBundles(BundleTable.Bundles);
     SqlDependency.Start(connString);
 }