protected void Application_Start() { AreaRegistration.RegisterAllAreas(); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);//Explanation done RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); BusinessSettings.SetBusiness(); }
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(); }
protected void Application_Start() { AreaRegistration.RegisterAllAreas(); WebApiConfig.Register(GlobalConfiguration.Configuration); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BusinessSettings.SetBusiness(); }
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(); }
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(); }
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 }