我可以回去EF5? [英] Can i go back to ef5?

查看:133
本文介绍了我可以回去EF5?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

MVC4 / EF5 VS2012最终我做了升级到EF6,认为它可能有问题有所帮助。

MVC4/EF5 VS2012 ultimate and I did an upgrade to EF6, thinking it might help with a problem.

我现在发现我不能创建一个支架控制器。 MS明确表示,他们不会支持在脚手架MCV4。我不知道够不够试图脚手架自己。

I now find I cannot create a scaffold controller. MS clearly says they will not support scaffold in MCV4. I don't know enough to attempt to scaffold myself.

我是一个新手,并试图通过修改/应用Conosto我的需求,勉强能够维持去学习。
我不再看的NuGet EF5。我有另一台计算机上VS2012 / mvc4和EF5。

I'm a newbie and trying to learn by modifying/applying Conosto to my needs, barely able to keep going. I no longer see EF5 in NuGet. I do have another computer with VS2012/mvc4 and EF5.

我可以重新安装附带EF4.1 VS2012我可以再复制EF5(因为我不能的NuGet它)。

I can reinstall VS2012 which comes with EF4.1 Can I then copy EF5 (since I can't NuGet it).

难道我只是找到合适的文件夹,复制EF5,改变webconfig(或者)?我应该采取什么步骤。

Could I just find the proper folder, copy ef5, and change webconfig (or where)? What steps should I take.

我只是看着MS API笔记上升级到MVC5,它似乎令人生畏一个新手。
建议?建议?

I just looked at MS API notes on upgrading to MVC5 and it seems daunting to a newbie. Suggestions? Recommendations?

推荐答案

更新::要克服错误的意见,卸载previous版本。的(我已经更新了以下的答案,包括这一点。)

UPDATE: To overcome the error in the comments, uninstall the previous version. ( I've updated the answer below to include this. )

您可以按如下方式通过包管理器控制台安装实体框架(在这种情况下,5.0.0)从在的NuGet previous版

You can install the previous version of Entity Framework (5.0.0 in this case) from Nuget via the Package Manager Console as follows

首先,卸载previous版本。

First, uninstall the previous version.

在Visual Studio中,转到软件包管理器控制台通过工具 - > 库包管理器 - > 软件包管理器控制台

In Visual Studio, go to the Package Manager Console via Tools -> Library Package Manager -> Package Manager Console.

方式> PM 提示符下,键入以下

Uninstall-Package EntityFramework -Force

卸载成功

后,在方式> PM 提示符下,键入以下

After the uninstall succeeds, in the >PM Prompt, type the following.

Install-Package EntityFramework -Version 5.0.0

在您按下回车键确认在来源下拉菜单可显示 nuget.org ,并在默认项目下拉列表显示已安装在EF6项目。如果没有,选择你的项目具有EF6的NuGet从默认项目下拉菜单,然后输入上面的命令来重新安装previous版本。

Before you hit enter make sure that the Source dropdown shows nuget.org and also the Default Project dropdown shows the project that you have EF6 installed in. If it doesn't, select your Project that has the EF6 Nuget in from the Default Project dropdown, and then enter the command above to re-install the previous version.

这篇关于我可以回去EF5?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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