Example #1
0
        void Application_Start(object sender, EventArgs e)
        {
            // Code that runs on application startup
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            // Database.SetInitializer(new MigrateDatabaseToLatestVersion<SchoolSystemDbContext, Configuration>());
            // var database = new SchoolSystemDbContext();
            // database.Database.CreateIfNotExists();
            // DbConfig.Initialize();
            // Ninject
            BindingsConfig.BindPresenterFactory();
        }
        protected void Application_Start()
        {
            MiniProfilerEF6.Initialize();

            InitProfilerSettings();

            AreaRegistration.RegisterAllAreas();

            BindingsConfig.RegisterCustomBinders(ModelBinders.Binders);

            WebApiConfig.Register(GlobalConfiguration.Configuration);

            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);

            RouteConfig.RegisterRoutes(RouteTable.Routes);

            BundleConfig.RegisterBundles(BundleTable.Bundles);

            AutoMapperConfiguration.ConfigureAutoMapper();
        }