我应该开始在ASP.NET MVC 1或MVC 2测试版?测试版、ASP、NET、MVC

由网友(何方妖孽)分享简介:我今天刚开始进入ASP.NET MVC,只见那测试版第2版已经发布。I'm just starting to get into ASP.NET MVC, and saw today that the Beta of version 2 has been released.我应该开始在MVC 1中,目前已经有很多很好...

我今天刚开始进入ASP.NET MVC,只见那测试版第2版已经发布。

I'm just starting to get into ASP.NET MVC, and saw today that the Beta of version 2 has been released.

我应该开始在MVC 1中,目前已经有很多很好的资源和教程?或者我应该直接去MVC 2,以利用已取得的任何改进?

Should I start on MVC 1 given that there are already a lot of great resources and tutorials? Or should I go straight to MVC 2 to take advantage of whatever improvements have been made?

我想打破这一成另外一个问题,但我猜的后续问题是有什么大的区别?是第1版教程适合让我进入第2版的?

I'm thinking about breaking this into another question, but I guess the followup question is what are the major differences? Are the version 1 tutorials appropriate to get me into version 2?

更新:

我认为这是值得更新这个问题提一提,我开始通过斯科特Guthrie的伟大的NerdDinner教程运行。我强烈推荐它。

I thought it was worth updating this question to mention that I started running through Scott Guthrie's great NerdDinner tutorial. I highly recommend it.

在通过跑步,我开始在自己的项目中使用它,几乎立刻碰钉子。我想重用在我的网站不同区域的谐音。如果部分属于一个不同的控制器,没有能做到的。然而,MVC 2的 Html.RenderAction 解决了我的问题。

After running through that, I started using it in my own project and almost immediately hit a snag. I wanted to reuse partials across different areas of my site. If the partial belongs to a different controller, no can do. However, MVC 2 has Html.RenderAction which solves the problem for me.

推荐答案

我个人会忘记1,只是跳与2.你完成任何项目的时候,2可能会完成测试。大多数MVC1教程将普遍适用于2如果有什么不工作只是判断是否到了版本之间的差异。 (事实上​​,如果你坚持使用1你不能保证所有的教程将是100%acurate的反正很多教程涉及到pre-发布1版)。 2增加了一些方便的功能,如区域,你可能想要使用。

Personally I would forget 1 and just jump in with 2. By the time you are finished with any project, 2 will probably be out of Beta. Most of the MVC1 tutorials will be generally applicable to 2. If something doesn't work just check if it's down to a difference between the versions. (In fact if you stick with 1 you are not guaranteed that all the tutorials will be 100% acurate anyway, as many tutorials relate to pre-release versions of 1). 2 adds some handy features like Areas, which you are likely to want to use.

阅读全文

相关推荐

最新文章