Missing “Ado.Net Entity Data Model” on Visual Studio 2013

前端 未结 11 987
星月不相逢
星月不相逢 2020-12-03 04:50

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

\"enter

相关标签:
11条回答
  • 2020-12-03 05:20

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

    0 讨论(0)
  • 2020-12-03 05:26

    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.

    0 讨论(0)
  • 2020-12-03 05:26

    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

    0 讨论(0)
  • 2020-12-03 05:27

    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

    0 讨论(0)
  • 2020-12-03 05:31

    For Visual Studio 2017 the following works.

    Create project:

    • Create new project of type 'Class Library'
    • Install 'Entity Framework' from NuGet

    Now add datamodel:

    • In project click 'Add New Item'
    • Select 'Visual C# Items' -> 'ADO.NET Entity Data Model'
    0 讨论(0)
提交回复
热议问题