예제 #1
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            ViewEngineConfiguration.RegisterViewEngine(ViewEngines.Engines);

            Database.SetInitializer(new MigrateDatabaseToLatestVersion <GamesShopBGDbContext, Configuration>());
            AutoMapperConfig.ConfigureAutomapper();
        }