Beispiel #1
0
 protected void Application_Start()
 {
     AreaRegistration.RegisterAllAreas();
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     DbSettingProviderManager.StartNewSession()
     .UseDefaultConnectionStringProvider()
     .UseDefaultDbSettingProvider(Server.MapPath("~/App_Data"), ignoreRedundantParameters: false, enableWatching: true)
     .Run();
 }
Beispiel #2
0
 protected void Application_Start()
 {
     AreaRegistration.RegisterAllAreas();
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BundleConfig.RegisterBundles(BundleTable.Bundles);
     AutoMapperConfiguration.Configure();
     DbSettingProviderManager
     .StartNewSession()
     .UseDefaultConnectionStringProvider()
     .UseDefaultDbSettingProvider(Server.MapPath("~/App_Data"), enableWatching: true)
     .Run();
 }