asp.net mvc的2至4 MVC
问题描述:
我想从我的更新项目:
- ASP.NET MVC 2与实体框架4。
到
- ASP.NET MVC 4和Entity Framework 4.1
如何才能做到这一点?
答
您可以看看这说明ASP.NET MVC 4.0版本说明如何的从ASP.NET MVC 3应用程序升级。和ASP.NET MVC 3.0的发行说明解释如何升级从ASP.NET MVC 2 。
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.
据EF从4.0升级到4.1 EF,这是因为更新程序集的引用一样简单。当然,如果你想要做code首先方法,你将不得不作出更广泛的修改。
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.