asp.net mvc 2 to mvc 4 - asp.net-mvc

I would like to update my project from:
ASP.NET MVC 2 with Entity Framework 4.
to
ASP.NET MVC 4 and Entity Framework 4.1
How can this be done?

You may take a look at the ASP.NET MVC 4.0 release notes which explain how to upgrade from an ASP.NET MVC 3 application. And the release notes of ASP.NET MVC 3.0 explain how to upgrade from ASP.NET MVC 2.
As far as upgrading from EF 4.0 to EF 4.1, it's as simple as updating the assembly reference. Of course if you wanted to do Code First approach you will have to make more extensive modifications.

Instead of doing it manually which will indeed take a lot of effort....why not check out my answer to a similar question and use ASP.NET MVC 3 Application Upgrader to go from MVC2 -> MVC3 and UpgradeMvc3ToMvc4 to go from MVC3 -> MVC4.

Related

Is servicestack MVC powerpack compatible with ASP.NET MVC 4?

I am currently using the servicestack powerpack (ServiceStackController) in an ASP.NET MVC 3 project but I am now considering upgrading to VS2012, .NET 4.5 and ASP.NET MVC 4. Has anybody tested whether the powerpack works with ASP.NET MVC 4?
Ok, I have tested it myself now and it seems to work fine.

Not able find Compare attribute in ASP.NET MVC 3 RTM

I am not able to find Compare attribute in ASP.NET MVC 3 RTM.
Is this because of me using the ASP.NET MVC 3 RTM? if yes then which version i have to use?
It's very possible, yes. It didn't exist in MVC 2, but MVC 3 has it (tested it). Try using the latest release of MVC 3 (thus, not the RTM).
If at that point you're still not able to find it, something else is wrong.

What is the difference between ASP.Net MVC and ASP.Net MVC2?

I've decided to take the suggestion from Robert Harvey on this site and build an application using ASP.Net MVC.
When I went to Bing for a brief overview, I saw there was an MVC2.
What is the difference and should I care?
MVC2 is backwards compatible with MVC, so MVC2 is the one you will be using.
For the new features in version 2, see here:
http://weblogs.asp.net/scottgu/archive/2010/03/11/asp-net-mvc-2-released.aspx
Just use MVC v2 if you have the option. It is an evolved version of MVC 1 with many useful enhancement. See ASP.NET MVC 2 Released for more info.

can you have both asp.net mvc 1 and 2 installed side by side?

i need to have one project on asp.net mvc 1 but i want to upgrade for another project. is this possible?
Yes you can. See Scott Guthrie's blog for more information.
ASP.NET MVC 2 can be installed
side-by-side with ASP.NET MVC 1
(meaning you can have some apps built
with V1 and others built with V2 on
the same machine). We have
instructions on how to update your
existing ASP.NET MVC 1 apps to use
ASP.NET MVC 2 using VS 2008 here.
Note that VS 2010 has an automated
upgrade wizard that can automatically
migrate your existing ASP.NET MVC 1
applications to ASP.NET MVC 2 for you.

Should I start a new ASP.Net MVC project with MVC 2 RC?

I have a new ASP.Net MVC application that I am about to start and I am wondering if its worth my while to use the 2 RC version over MVC 1.
Will my MVC 1 applications upgrade easily to MVC 2 if I do continue with 1?
I'd suggest you start it by using MVC 2 RC. If you decide to use MVC 1 and you haven't modified or extended anything too deeply in MVC 1 upgrading won't give you much pain.
But I think MVC 2 RC is reliable to start developing a new app. My 2 cents...
It all depends on your requirement MVC 2 is still beta but.
MVC 1 app can be upgrade to MVC 2 with lots of trouble, you can easily convert Uprade from this link http://weblogs.asp.net/leftslipper/archive/2009/10/19/migrating-asp-net-mvc-1-0-applications-to-asp-net-mvc-2.aspx

Resources