Reputation: 51
MVC4/EF5 VS2012 ultimate and I did an upgrade to EF6, thinking it might help with a problem.
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.
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.
I can reinstall VS2012 which comes with EF4.1 Can I then copy EF5 (since I can't NuGet it).
Could I just find the proper folder, copy ef5, and change webconfig (or where)? What steps should I take.
I just looked at MS API notes on upgrading to MVC5 and it seems daunting to a newbie. Suggestions? Recommendations?
Upvotes: 3
Views: 2423
Reputation: 20945
UPDATE: To overcome the error in the comments, uninstall the previous version. ( I've updated the answer below to include this. )
You can install the previous version of Entity Framework (5.0.0 in this case) from Nuget via the Package Manager Console as follows
First, uninstall the previous version.
In Visual Studio, go to the Package Manager Console via Tools -> Library Package Manager -> Package Manager Console.
In the >PM
Prompt, type the following.
Uninstall-Package EntityFramework -Force
After the uninstall succeeds, in the >PM
Prompt, type the following.
Install-Package EntityFramework -Version 5.0.0
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.
Upvotes: 8