Until yesterday's release of the ASP.NET MVC preview, I desperately needed a function, such as a "scope", but I donβt know how it was called so that it could be found.
The preview describes the "areas" as:
Areas - provide a way to divide a large web application into several projects, each of which can be developed in relative isolation. This helps developers manage the complexity of creating a great way to group related controllers and views.
In my case, I create an online store as part of the application. I would like to share everything under /store / with controllers like /store/products/ and /store/checkout .
The ASP.NET 2.0 scopes feature seems to be exactly what I want, but I cannot justify switching to it for a production application (although this is very tempting!).
I noticed that Phil had an article about 'group controllers' back in November - actually called ' Areas in ASP.NET MVC '
It would be really interesting if anyone used any approach - or perhaps someone who is familiar with both.
I would like to move the store logic to a separate 'area' as soon as possible, but I canβt decide whether to try to use the Phil November solution or just implement it with a preview? I assume that even some of my code will need to be changed - the RESTful URLs that I would create would not need to be changed, so I tend to try using the "grouping controller" method. Has anyone tried it too?
http://haacked.com/archive/2008/11/04/areas-in-aspnetmvc.aspx
MSDN Area Documentation: http://msdn.microsoft.com/en-us/library/ee307987(VS.100).aspx
asp.net-mvc
Simon_Weaver
source share