Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I keep working on my project on MVC 1.0 or stop and learn MVC 2.0?

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.

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.

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

Thanks for helping.

like image 524
Richard77 Avatar asked Feb 25 '10 10:02

Richard77


People also ask

What is the starting point of MVC application?

The entry point for every MVC application begins with routing. After the ASP.NET platform has received a request, it figures out how it should be handled through the URL Routing Module.

What is Microsoft ASP.NET MVC 2?

The Model-View-Controller (MVC) pattern is an architectural design principle that separates the components of a Web application. This separation gives you more control over the individual parts of the application, which lets you more easily develop, modify, and test them. ASP.NET MVC is part of the ASP.NET framework.


3 Answers

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

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

like image 95
AndreasKnudsen Avatar answered Nov 15 '22 06:11

AndreasKnudsen


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:

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

like image 31
Darin Dimitrov Avatar answered Nov 15 '22 06:11

Darin Dimitrov


There is no such thing as migrating from MVC1 to MVC2.

As the later one is an upgraded version, you will only need to learn new features, introduced with it, like

  • ModelMetadataProvider Class

  • 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

like image 36
Asad Avatar answered Nov 15 '22 07:11

Asad