MVC3:有专门用于此目的的区域吗?
我必须编写一个 Web 门户,该门户提供多种不同的功能,例如:用户问题的通知和解决、采购请求、供应请求、设施管理...
我认为我应该创建一个 MVC 应用程序并通过创建一个区域来划分它对于常见的事物和每个其他功能的单独区域,但不知道区域的概念是否适合我的需求或旨在满足其他需求。
感谢您的回答。
I have to code a web portal that offers multiple and varied features such as: notification and resolution of user problems, purchasing requests, requests for supplies, facilities management ...
I thought I should create an MVC application and divide it by creating an area for common things and a separate area for each of the other features, but do not know whether the concept of area is suitable for my needs or is intended for other needs.
Thanks for your answers.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
区域将站点的各个部分分成目录,其中每个区域/文件夹都有其相关的视图和控制器。
区域还有助于在 URL 结构中分隔应用程序。
我不认为何时使用区域和何时不使用区域存在硬性规则,尽管我会说这取决于应用程序的大小,但最常见的是。只有几个页面的网站实际上不需要任何区域,这在设计上可能有点过分。
Areas will separate parts of your site into directories where each area/folder has their related views and controllers.
Areas also help separate your application in the URL structure.
I don't think there is a hard rule of when to use Areas and when not to, most commonly though I would say it depends on the size of your application. A site with only a few pages would not realy need any areas, that might be overkill in design.