Few months I've started learning ASP.NET MVC 1.0. Although hard in the beginning, now I've made huge progress so that I'm working on something serious I can show to my colleagues. But, now MVC 2 is almost out there.
几个月我开始学习ASP.NET MVC 1.0。虽然一开始很难,但现在我已经取得了巨大的进步,所以我正在努力做一些我可以向同事们展示的严肃事情。但是,现在MVC 2几乎就在那里。
Now I would like to know if MVC 1.0 and MVC 2 are profoundly different. In fact, I wonder if I need (first) to finish what I am into or (secondly) I need to stop everything and learn first MVC 2.
现在我想知道MVC 1.0和MVC 2是否有很大的不同。事实上,我想知道我是否需要(首先)完成我所做的事情或(其次)我需要停止一切并首先学习MVC 2。
To illustrate my point, I'd say: Is migrating from MVC 1.0 to MVC 2 the same scale as migrating from Web Form to MVC 1.0
为了说明我的观点,我要说:从MVC 1.0迁移到MVC 2与从Web Form迁移到MVC 1.0的规模相同
Thanks for helping.
谢谢你的帮助。
4 个解决方案
#1
3
MVC2 is not a huge leap from MVC1. Most likely your code will run fine on MVC2 as is, with only minor tweaks here and there
MVC2并不是MVC1的巨大飞跃。很可能你的代码在MVC2上运行正常,只有很小的调整
here is a guide: http://weblogs.asp.net/leftslipper/archive/2009/10/19/migrating-asp-net-mvc-1-0-applications-to-asp-net-mvc-2.aspx
这是一个指南:http://weblogs.asp.net/leftslipper/archive/2009/10/19/migrating-asp-net-mvc-1-0-applications-to-asp-net-mvc-2.aspx
#2
2
They are not profoundly different. Everything you learnt so far on 1.0 is applicable in 2.0. You could start looking at 2.0 new features though. Quote from Scott Gu's blog:
他们没有太大的不同。到目前为止,您在1.0上学到的所有内容都适用于2.0。你可以开始考虑2.0新功能。引自Scott Gu的博客:
ASP.NET MVC 2 is the next significant update of ASP.NET MVC. It is a compatible update to ASP.NET MVC 1 – so all the knowledge, skills, code, and extensions you already have with ASP.NET MVC continue to work and apply going forward
ASP.NET MVC 2是ASP.NET MVC的下一个重要更新。它是ASP.NET MVC 1的兼容更新 - 因此您已经拥有的ASP.NET MVC的所有知识,技能,代码和扩展将继续工作并继续应用
#3
2
There is no such thing as migrating from MVC1
to MVC2
.
没有从MVC1迁移到MVC2的事情。
As the later one is an upgraded version, you will only need to learn new features, introduced with it, like
由于后者是升级版本,因此您只需要学习随其引入的新功能
- ModelMetadataProvider Class
- ModelMetadataProvider类
-
Model Validator Providers and others
模型验证器提供商和其他人
All the rest is same
.其余的都是一样的。
For instance, if you are using .Net Framework 4.0
, later on, when version 4.5
or 5.0
comes in, you are not going to migrate! but learn new features in that
例如,如果您使用.Net Framework 4.0,稍后,当版本4.5或5.0进入时,您将不会迁移!但要学习新功能
#4
0
As MVC2 is still a Release Candidate you should check the polices of your company, otherwise I dont think you would have any problem using MVC2, since everything from MVC1 still works on 2. And you get the beneffits of MVC2.
由于MVC2仍然是候选版本,你应该检查你公司的政策,否则我不认为你使用MVC2会有任何问题,因为MVC1的所有内容仍然适用于2.你得到了MVC2的好处。
#1
3
MVC2 is not a huge leap from MVC1. Most likely your code will run fine on MVC2 as is, with only minor tweaks here and there
MVC2并不是MVC1的巨大飞跃。很可能你的代码在MVC2上运行正常,只有很小的调整
here is a guide: http://weblogs.asp.net/leftslipper/archive/2009/10/19/migrating-asp-net-mvc-1-0-applications-to-asp-net-mvc-2.aspx
这是一个指南:http://weblogs.asp.net/leftslipper/archive/2009/10/19/migrating-asp-net-mvc-1-0-applications-to-asp-net-mvc-2.aspx
#2
2
They are not profoundly different. Everything you learnt so far on 1.0 is applicable in 2.0. You could start looking at 2.0 new features though. Quote from Scott Gu's blog:
他们没有太大的不同。到目前为止,您在1.0上学到的所有内容都适用于2.0。你可以开始考虑2.0新功能。引自Scott Gu的博客:
ASP.NET MVC 2 is the next significant update of ASP.NET MVC. It is a compatible update to ASP.NET MVC 1 – so all the knowledge, skills, code, and extensions you already have with ASP.NET MVC continue to work and apply going forward
ASP.NET MVC 2是ASP.NET MVC的下一个重要更新。它是ASP.NET MVC 1的兼容更新 - 因此您已经拥有的ASP.NET MVC的所有知识,技能,代码和扩展将继续工作并继续应用
#3
2
There is no such thing as migrating from MVC1
to MVC2
.
没有从MVC1迁移到MVC2的事情。
As the later one is an upgraded version, you will only need to learn new features, introduced with it, like
由于后者是升级版本,因此您只需要学习随其引入的新功能
- ModelMetadataProvider Class
- ModelMetadataProvider类
-
Model Validator Providers and others
模型验证器提供商和其他人
All the rest is same
.其余的都是一样的。
For instance, if you are using .Net Framework 4.0
, later on, when version 4.5
or 5.0
comes in, you are not going to migrate! but learn new features in that
例如,如果您使用.Net Framework 4.0,稍后,当版本4.5或5.0进入时,您将不会迁移!但要学习新功能
#4
0
As MVC2 is still a Release Candidate you should check the polices of your company, otherwise I dont think you would have any problem using MVC2, since everything from MVC1 still works on 2. And you get the beneffits of MVC2.
由于MVC2仍然是候选版本,你应该检查你公司的政策,否则我不认为你使用MVC2会有任何问题,因为MVC1的所有内容仍然适用于2.你得到了MVC2的好处。