标签:control string resource pre out namespace add orm map
public static void RegisterRoutes(RouteCollection routes) { routes.IgnoreRoute("{resource}.axd/{*pathInfo}"); routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", //defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } defaults: new { controller = "Default", action = "Index", id = UrlParameter.Optional }, namespaces: new string[] { "ZJ.MVC5.Platform.Areas.Movie" } ).DataTokens.Add("Area", "Movie"); }
起始路由改成分区(Areas)的RouteConfig.cs配置方法
标签:control string resource pre out namespace add orm map
原文地址:https://www.cnblogs.com/zhuji/p/11399921.html