No Entity Data Model (EDMX) Template with Visual Studio 2010 SP1 & ADO.NET Entity Framework 4.1

后端 未结 11 1581
孤城傲影
孤城傲影 2020-12-02 15:51

I\'m having a lot of issues with the templates of Visual Studio 2010 SP1 & ADO.NET Entity Framework 4.1

I noticed that other people had these problems, and asked

相关标签:
11条回答
  • 2020-12-02 16:16

    I had uninstalled VS2012 Ultimate trial and installed VS2012 Premuim and had this happen. In Windows 7 Control Panel\Programs\Programs and Features I found "Entity Framework Designer for Visual Studio 2012 - enu and did a repair and that fixed everything.

    0 讨论(0)
  • 2020-12-02 16:17

    I was finally able to add the template. I had to reinstall the EntityFramework 4.1 and then reinstall the visual studio templates. Here are the steps:

    1. Install EntityFramework 4.1 from http://www.microsoft.com/en-gb/download/details.aspx?id=8363
    2. Using Visual Studio command prompt, navigate to IDE, run devenv /installvstemplates
    0 讨论(0)
  • 2020-12-02 16:18

    Restoring default project templates proposed in the majidgeek answer did not help me (with Visual Studio 2012).

    Repairing Visual Studio neither.

    I had used a Web Installer from MSDN to install VS2012, so i had no installation media to apply the solution suggested in the AH. answer.

    However, the accepted answer from here solved my problem:

    http://www.datazx.cn/Fv7p5a/xw-US/oaax2pu/2q7xs6/d8x6rssc-b4mt-fsix-bc6c-ct8mf8d6fsbc23rsdfd.html

    I finally figured it out. I ran EFTools.msi from a C:\ProgramData\Package Cache\ subfolder, which only allowed me to 'uninstall' or 'repair'. I tried repair, but I get the same problem, so I did 'uninstall', then ran it again and it allowed 'install'. After this install, I can now add Entity Data Models.

    Also, the accepted answer in the "Missing Entity Framework Template in Visual Studio 2012 Express for Web" threat on forums.asp.net suggests that repairing Entity Framework Designer for Visual Studio 2012 enu via 'Start -> Control Panel -> Programs and Features' might work as well (I can post only two links with my current 1 point Stackoverflow reputation, so I won't provide the exact source).

    Another possible solution:

    My Problem was: Visual Studio is installed on Drive D:\, whereas the Entity Framework Installer placed the Package in c:...\VisualStudio 10.0\Common7....\ItemTemplates folder. --> Copied the AdoNetEntityDataModelCSharp.zip to drive d: and ran devenv /installvstemplates. This fixxed it for me. Edit: Also had to copy Various DLLs from IDE folder, PrivateAssemblies and PublicAssemblies. then run devenv /ResetSkipPkgs

    http://social.msdn.microsoft.com/Forums/en-US/c059069b-eae4-48b4-a06e-ffd5f186077b/adonet-data-entity-model-template-missing-in-vs-2010-ultimate?forum=adodotnetentityframework

    I also installed VS in a non-default path (different disk partition), so it indeed may be one of the potential causes of the problem.

    0 讨论(0)
  • 2020-12-02 16:21

    Actually, you will have to add simple class library project, and do "Add New Item" and then you will find ADO.NET Entity Data model.

    (It seems from newer versions, they have removed this project template, and offering it as "New Item". I was searching for it, then found it like new item instead of new project template. though this MSDN link shows ado.net entity data model as new project :( http://msdn.microsoft.com/en-us/data/ff830362

    0 讨论(0)
  • 2020-12-02 16:25

    search in C:\ProgramData\Package Cache for EFTools.msi and install the latest.

    0 讨论(0)
提交回复
热议问题