Asp.Net MVC VS城堡单轨 [英] Asp.Net MVC vs Castle MonoRail

查看:171
本文介绍了Asp.Net MVC VS城堡单轨的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经与Asp.Net构建应用程序的一些经验,但现在MVC框架变得越来越流行。我想尝试建设有Asp.Net MVC或城堡单轨使用新的多语言的Web应用程序,但我不知道哪一个是为我好。我不喜欢web窗体视图引擎,但我​​喜欢在Asp.Net MVC的路由功能。

I've some experiences on build application with Asp.Net, but now MVC frameworks become more popular. I would like to try building new multilingual web application using with Asp.Net MVC or Castle MonoRail but I don't know which one is good for me. I don't like the web form view engine, but I like routing feature in Asp.Net MVC.


  • 任何人都可以讲述那些之间的利弊?

  • 哪些视图引擎是更好的,以及用于覆盖主模板?

推荐答案

在谈到作为单轨的倡导者,我不得不说你应该去为ASP.NET MVC。说实话,这个简单的事实ASP.NET MVC将成为默认架构三年内应该可能摆动它。这个方程为不同的一年前,仅仅是因为默认的架构相比,单轨有严重的效率问题。

Speaking as an advocate of monorail, I've got to say you should probably go for ASP.NET MVC. To be honest, the simple fact that ASP.NET MVC is going to become the default architecture within three years should probably swing it. This equation was different a year ago, simply because the default architecture had serious productivity problems compared to MonoRail.

如果你想谈论技术的优点和缺点:

If you want to talk technical advantages and disadvantages:


  • ASP.NET AJAX是一个烂摊子(避免),但现在他们已经得到了jQuery的。事实上,jQuery的支持比任何其他环境更好。当然,你只有充分得到与标准视图引擎的IDE集成。

  • 有一些审美的改进(例如,道路模型信息传来传去的更清洁,比单轨更明显)。

此外,不排除失控的标准视图引擎。你不必扔它控制像你这样使用ASP.NET,你可以code将其在pretty类似的方式来抄网,仅使用C#,而不是嘘声。

Also, don't dismiss the standard view engine out of hand. You don't have to throw controls at it like you did with ASP.NET, you can code it in a pretty similar manner to Brail, only using C# instead of Boo.

有东西,只是普通的丑
 *的称取对象的参数的方法的数量。祝你好运找到确切地对他们所期望的文档。
 *微软的喜爱抽象类在接口。他们有他们的理由,但我还是不喜欢。

There are things that are just plain ugly * the number of methods that take object for a parameter. Good luck finding the documentation on what exactly they expect. * Microsoft's fondness for abstract classes over interfaces. They have their reasons, but I still dislike it.

此外,在许多方面,单轨仍然是更完整的平台。有没有抽象为ASP.NET验证或传呼,例如。另外,有没有真正用于绑定到一个模型中的任何帮助。相比,他们的单轨等值佣工有很少的功能。

Also, in many ways, MonoRail remains the more complete platform. There's no abstraction for validation or paging in ASP.NET, for instance. Also, there's not really any help for binding to a model. The helpers have very little functionality compared to their Monorail equivalents.

不过,总的来说,我认为ASP.NET MVC是一个胜利者。

Overall, though, I think ASP.NET MVC is a winner.

这篇关于Asp.Net MVC VS城堡单轨的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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