I am trying to add a controller with read / write actions and views using the Entity Framework.
But when I try to do this, VS2012 tells me that "MVC scaffolds do not support Entity Framework 6 or later." I read http://support.microsoft.com/kb/2816241 and tried to remove EntityFramework 6 and install 5 in the Nuget Manager console:
PM> Remove EntityFramework package -force Removing "EntityFramework 6.0.2" from OnlinebookingAdministrator. Removed "EntityFramework 6.0.2" from OnlinebookingAdministrator. Uninstall "EntityFramework 6.0.2". Remote uninstall "EntityFramework 6.0.2".
PM> Install-Package EntityFramework -version 5.0.0 "EntityFramework 5.0.0" is already installed. Adding "EntityFramework 5.0.0" to the OnlinebookingAdministrator. Successfully added โEntityFramework 5.0.0โ to OnlinebookingAdministrator.
But the error appears when I try to add a controller. Is there a solution for this?
asp.net-mvc entity-framework-6
perene
source share