asp.net mvc的2至4 MVC [英] asp.net mvc 2 to mvc 4

查看:95
本文介绍了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.

这篇关于asp.net mvc的2至4 MVC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆