Пример #1
0
 protected void Application_Start()
 {
     AreaRegistration.RegisterAllAreas();
     Database.SetInitializer <PublicShapefileServiceContext>(new CreateDatabaseIfNotExists <PublicShapefileServiceContext>());
     WebApiConfig.Register(GlobalConfiguration.Configuration);
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     CacheConfig.DoCaching(ConfigurationManager.AppSettings["route"]);
     ContainerConfig.RegisterTypes();
     AutoMapperWebConfiguration.RegisterMaps();
 }