ASP.NET MVC领域:他们是一个大的应用程序很重要? [英] ASP.NET MVC Areas: Are they important to a large application?

查看:101
本文介绍了ASP.NET MVC领域:他们是一个大的应用程序很重要?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在开发大型ASP.NET MVC应用程序的过程。我目前通过我将用它来构建我的控制器/视图的工作机制。我看到单轨提一些和它的使用的区。我已审查 Haacked的文章,它看起来像一个intresting选项。我想知道的是,任何人是否已经实施了一个produciton ASP.NET MVC应用领域,如果他们有是否有任何网上资源,可以帮助实现地区和证明自己的存在。

I am in the process of developing a large ASP.NET MVC application. I am currently working through the mechanisms I'll use to structure my controllers/views. I have see some mention of monorail and it's use of "areas". I have reviewed Haacked's article and it looks like an intresting option. What I would like to know is whether or not anyone has implemented areas in a produciton ASP.NET MVC application and if they have are there any online resources that might help implement the areas and justify their existence.

推荐答案

我和我的团队正在开发使用ASP.NET MVC框架作为底层技术的一个非常大的应用程序。我们使用的是领域的,的Strongly类型的视图名称和我们自己的<版本href=\"http://oddiandeveloper.blogspot.com/2008/11/localization-with-aspnet-mvc.html\">Localisation.到目前为止,这是一起工作得很好。

Me and my team are currently developing a very large application using the ASP.NET MVC framework as the underlying technology. We are using Areas, Strongly Typed View Names and our own version of Localisation. So far it is working together very well.

在ASP.NET MVC对我来说大忌将是控制器的名字必须是唯一的。这是完全可以预见的要求对清单中管理的股票和派遣我的应用领域和整理这些将是太难的控制器。随着区域这已不再是一个问题。我会强烈建议使用它们作为菲尔哈克概述了。

The deal breaker with ASP.NET MVC for me was going to be that the controller names had to be unique. It was perfectly foreseeable to require a controller for managing stock within inventory and dispatching areas of my application and sorting these was going to be too hard. With areas this is no longer a problem. I would highly recommend using them as Phil Haack has outlined.

另外,您可以看看史蒂芬桑德森实施在那里,他已采取它远一点,但对我们来说这是不是我们需要的。

Alternatively you could look at Steven Sanderson's implementation where he has taken it a little further, though for us it was not something we needed.

我也不会感到惊讶地看到很快落实到ASP.NET MVC的区域。

I wouldn't be surprised to see Areas implemented into ASP.NET MVC very soon.

您的应用程序祝你好运,我不认为你会后悔选择ASP.NET MVC。

Good luck with your application, I don't think you'll regret choosing ASP.NET MVC.

这篇关于ASP.NET MVC领域:他们是一个大的应用程序很重要?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆