"Package Manager Console" under "library Package Manager,
If the Package Manager Console prompts an error
Download and install
Http://www.microsoft.com/downloads/zh-cn/details.aspx? Familyid = 863e7d01-fb1b-4d3e-b07d-766a0a2def0b
Because my system is 2008, you download the corresponding Update file based on your system.
Reboot upon installation completion
On the Package Manager Console, enter the following command to install efcodefirst:
PM>Install-Package efcodefirst
PM> install-package efcodefirst
"Entityframework (≥4.1.10331.0)" is not installed )". Retrieving dependency from source...
Complete
You are downloading entityframework from Microsoft, the license agreement to which is available Http://go.microsoft.com/fwlink? Linkid = 211010 . Check the package for additional dependencies, which may come with their own license agreement (s ). your use of the package and dependencies constitutes your acceptance of their license agreements. if you do not accept the license agreement (s), then delete the relevant components from your device.
"Entityframework 4.1.10331.0" is successfully installed"
"Efcodefirst 1.1" is successfully installed"
"Entityframework 4.1.10331.0" has been added to mvctest
"Efcodefirst 1.1" has been added to mvctest
PM>
The steps mentioned on the Internet below are still not successfully installed.
The "add library package reference" menu option under the "library Package Manager" sub-menu under the "Tools" menu,
Click "online" in the left-side navigation pane"
Enter "efcode" in the search input box in the upper-right corner ". In the search result, select the efcodefirst package and click the Install button to install the installation package.
If the prompt (
This package (or one of its Dependencies) contains powershell scripts and needs to be installed from the package manger Console
)
Download and install
Http://www.microsoft.com/downloads/zh-cn/details.aspx? Familyid = 863e7d01-fb1b-4d3e-b07d-766a0a2def0b
Because my system is 2008, you download the corresponding Update file based on your system.
Download and install updates or prompt the above error message
I don't know why.
Please advise