首页 > Web开发 > 详细

使用属性创建区域 (Creating Areas with Attributes) | 使用区域 | 高级路由特性 | 精通ASP-NET-MVC-5-弗瑞曼

时间:2016-06-10 16:21:00      阅读:232      评论:0      收藏:0      [点我收藏+]

技术分享

 

RouteArea属性将Route属性定义的所有路由都迁移到了特定的区域。 和 RoutePrefix属性组合的该属性的效果意味着访问Create动作方法

http://localhost:34855/Services/Users/Add/Adam/100

RouteArea 属性 并不 影响 Route 属性定义的路由,[Route("~/Test")]  Index动作方法:  http://localhost:34855/Test/

 

使用属性创建区域 (Creating Areas with Attributes) | 使用区域 | 高级路由特性 | 精通ASP-NET-MVC-5-弗瑞曼

原文:http://www.cnblogs.com/ganmk--jy/p/5573799.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!