Missing “Ado.Net Entity Data Model” on Visual Stud

2019-01-11 10:10发布

问题:

I have created new web project but I can't find ADO.net Entity DAta Model to add it.

How to fix it or Install it ?

回答1:

Go to "C:\ProgramData\Package Cache" and search for "EFTools.msi".

You should find two files, just install the most recent one (it should be about 960KB). This fixed the problem for me.



回答2:

i have the same problem, but there is no "EFTools.msi" in "C:\ProgramData\Package Cache" for me...

UPDATE : i download and install "Entity Framework 6 Tools for Visual Studio 2012 & 2013" and it solved the problem \m/

Download Link



回答3:

Some web tutorials show a 'ADO.NET data entity model' item in the 'Models->Add' menu. In VS2015 this menu item is not shown. You need to keep drilling down by selecting 'New Item...' and then further selecting 'Data' from the pop-up dialog.



回答4:

My solution was none like the above. The .msi file was nowhere in the folders suggested in prior answers, nor doing a search in my hard drive found any EFTools.msi instances.

So the failsafe approach came through this article (since the author appears to have completely removed the page from the server, I've changed the URL to a version of the page stored in Google's cache), which was poorly written by a chinese fella, so I'm gonna try to rewrite the steps in a clearer way:

The solution is as follows:

  1. Open your VS2013 installation ISO (or pop the DVD in) and navigate to "\packages\EFTools" folder;
  2. There you will find 2 files (a .cab file and a .msi file);
  3. Copy both files to a directory on your hard drive;
  4. [Optional]: You can create in that same directory, an empty .txt file ("Log.txt") so that the installation log output will be redirected to it later;
  5. Open a MS-DOS command prompt (with administrative rights) and type the command: EFTools.msi USING_EXUIH=1 /log "Log.txt" [NOTE: If you did not perform step #4, then you do not need to type from the ' /log' on (inclusive)]
  6. Wait patiently while the installation process finishes. Takes quite some time (guess never hurts to remind you that this needs to be done with VS2013 closed). The installation should go fine, anything weird will be logged into the text file (the one you created in step #4).

Or, you might just double-click the .msi file if you are feeling brave..

After installation, open VS2013 and try adding a new item to the Models folder. The "ADO.NET Entity Data Model" should have reappeared under the "Data" tab.

Recognition goes to the anonymous chinese poster on that link (er, "Melinda"?) - xiè-xiè!



回答5:

right click on your project--> properties---> framework target select 4.5 and should work.



回答6:

It's only for Visual Studio 2012. For me this had no effect on 2013.



回答7:

For the record, if you have Visual Studio 2015 RC, the "EFTools.msi" can't be downloaded from Microsoft

If you accidentally delete the "ProgramData" folder, the Repair option will not work, you have to use the Add or Remove features option from the installer, and check the SQL Server Data Tools



回答8:

Make sure the type of project you've added is for .NET Framework and not for .NET Standard. The templates for adding things such as ADO.NET Entity Data Model are included for .NET Framework.