void Application_Start(object sender, EventArgs e) { // 在应用程序启动时运行的代码 AreaRegistration.RegisterAllAreas(); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); GlobalConfiguration.Configure(WebApiConfig.Register); RouteConfig.RegisterRoutes(RouteTable.Routes); // 使用之前请根据需要配置Bundles文件 //BundleConfig.RegisterBundles(BundleTable.Bundles); StartupConfig.Startup(); }
protected void Application_Start(object sender, EventArgs e) { // Z.EntityFramework 证书 LicenseManager.AddLicense("67;100-MASUIT", "809739091397182EC1ECEA8770EB4218"); // 区域注册 AreaRegistration.RegisterAllAreas(); // 过滤器注册 FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); // WebApi注册 GlobalConfiguration.Configure(WebApiConfig.Register); // 路由注册 RouteConfig.RegisterRoutes(RouteTable.Routes); // Bundles注册 //BundleConfig.RegisterBundles(BundleTable.Bundles); // 其他配置 StartupConfig.Startup(); }