public void Application_Error(object sender, EventArgs e) { Exception exception = Server.GetLastError(); if (EFMigrationsManagerConfig.HandleEFMigrationException(exception, Server, Response, Context)) { return; } }
protected void Application_Start() { AreaRegistration.RegisterAllAreas(); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); EFMigrationsManagerConfig.Register(); }