VS 没有 ADO.NET Entity Framework模板
Open the install media for VS2010 and browse to ":\WCU\EFTools". Her you will find two files:
ADONETEntityFrameworkTools_enu.msi
ADONETEntityFrameworkTools_enu.cab
Copy those files to a folder on your PC.
Create a log file in the folder - for instance with the name "Log.txt"
Open a cmd prompt (possibly run the cmd prompt as administrator) and navigate to the folder with the msi and cap files.
Run this command:
ADONETEntityFrameworkTools_enu.msi USING_EXUIH=1 /log "Log.txt"
It will take a while to install so be patient.
The installation should now be visible in "Control Panel -> Installed Programs" as "Microsoft Visual Studio 2010 ADO.NET Entity Framework Tools".
The items template should be visible in Visual Studio when adding a new item to a project. (Add New Item->Data->ADO.NET Entity Data Model).
More info here: http://msdn.microsoft.com/en-us/library/ee225240.aspx