Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个现有的 asp.net MVC 应用程序,我现在想添加“区域”。
这有什么后果?有什么陷阱吗?
如果您添加区域,那么您的所有路线都会有所不同。一定要测试你所有的路线。如果您要从一个区域到另一个区域,事情可能会变得特别棘手 - 您需要指定路由值的区域(新 {area = "myArea"})。