Example #1
0
 protected void Application_Start()
 {
     AreaRegistration.RegisterAllAreas();
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);//Explanation done
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BundleConfig.RegisterBundles(BundleTable.Bundles);
     BusinessSettings.SetBusiness();
 }
Example #2
0
 protected void Application_Start()
 {
     AreaRegistration.RegisterAllAreas();
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BundleConfig.RegisterBundles(BundleTable.Bundles);
     //Database.SetInitializer(new DropCreateDatabaseIfModelChanges<SalesERPDAL>());
     BusinessSettings.SetBusiness();
 }
Example #3
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();

            WebApiConfig.Register(GlobalConfiguration.Configuration);
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);

            BusinessSettings.SetBusiness();
        }
Example #4
0
 protected void Application_Start()
 {
     //Database.SetInitializer<SalesERPDAL>( null ); // Before Day 7
     BundleTable.EnableOptimizations = true;
     AreaRegistration.RegisterAllAreas();
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BundleConfig.RegisterBundles(BundleTable.Bundles);
     BusinessSettings.SetBusiness();
 }
Example #5
0
        protected void Application_Start()
        {
            BundleTable.EnableOptimizations = true; // enable bundle
            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            // ef setting
            BusinessSettings.SetBusiness();
        }
Example #6
0
        protected void Application_Start()
        {
            //AppDomain.CurrentDomain.FirstChanceException += CurrentDomain_FirstChanceException;

            BundleTable.EnableOptimizations = true;
            AreaRegistration.RegisterAllAreas();
            BusinessSettings.SetBusiness();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);
            // reister custom view engine
            ViewEngines.Engines.Add(new MyCustomViewEngine());
            //ModelBinders.Binders.Add(typeof(CustomModelBinder), new CustomModelBinder()); //register custom model binder
            //ModelBinders.Binders.DefaultBinder = new DropDownDateTimeBinder(); // register overriden model binder
        }