Workaround: Uninstall the original 6.0 version of EF and install version 5.0 from the console.
Tools Library Package Manager Package Manager console. Enter the installation command after pm>.
The command is as follows
Install-package entityframework-version 5.0.0.0
Here are the tips:
Installing "EntityFramework 5.0.0". You are downloading entityframework from Microsoft and the license agreement for this package is available on http://go.microsoft.com/fwlink/?LinkId=253898&clcid=0x409. Check to see if there are other dependencies on this package that may have their own license agreement. Your use of the package and dependencies constitutes your acceptance of the license agreement. If you do not accept these license agreements, please remove the relevant components from your device. "EntityFramework 5.0.0" was successfully installed. Adding "EntityFramework 5.0.0" to Mvctest. "EntityFramework 5.0.0" was successfully added to Mvctest. Type ' Get-help entityframework ' to see all available Entity Framework commands.
Using NuGet packages to download entity Framework6.0 cannot automatically generate controller and view using model classes and database contexts