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

2019-01-11 09:40发布

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

enter image description here

How to fix it or Install it ?

8条回答
叼着烟拽天下
2楼-- · 2019-01-11 10:05

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.

查看更多
虎瘦雄心在
3楼-- · 2019-01-11 10:09

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

查看更多
等我变得足够好
4楼-- · 2019-01-11 10:10

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

查看更多
混吃等死
5楼-- · 2019-01-11 10:11

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è!

查看更多
太酷不给撩
6楼-- · 2019-01-11 10:15

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.

查看更多
干净又极端
7楼-- · 2019-01-11 10:16

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

查看更多
登录 后发表回答