Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

asp.net mvc 2 to mvc 4

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?

like image 239
Jean-Francois Avatar asked Feb 14 '12 18:02

Jean-Francois


People also ask

What is Microsoft ASP.NET MVC 4?

ASP.NET MVC 4 is a framework for developing highly testable and maintainable Web applications that follow the Model-View-Controller (MVC) pattern. The framework encourages you to maintain a clear separation of concerns— views for UI, controllers for handling user input, and models for domain logic.

Can we plug an ASP.NET MVC into an existing ASP.NET application?

Luckily, the answer is yes. Combining ASP.NET Webforms and ASP.NET MVC in one application is possible—in fact, it is quite easy. The reason for this is that the ASP.NET MVC framework has been built on top of ASP.NET.


1 Answers

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.

like image 120
Darin Dimitrov Avatar answered Oct 08 '22 17:10

Darin Dimitrov