Missing ADO.NET entity data model template from visual studio 2012 professional

后端 未结 12 544
逝去的感伤
逝去的感伤 2020-12-09 08:31

Missing ADO.NET entity data model template from Visual Studio 2012 Professional. I don\'t even have \"Data\" category from Visual Studio template category.

I modifi

相关标签:
12条回答
  • 2020-12-09 08:46

    Close Visual Studio and then install "Entity Framework Tools for Visual Studio" from this location:

    [Visual Studio Disk or installer folder]\packages\EFTools\EFTools.msi"

    I do it and I got the result.


    You can also download this tool from here.

    0 讨论(0)
  • 2020-12-09 08:47

    I solved this by going into project properties and changing the target framework. In my case, the default target framework for the project was 2.0 (no idea why - I would've expected 4.5 to be the default). I changed it to 4.5 and I was able to see the "ADO.Net Entity Data Model" option. I think it's all about having the correct EF tools installed for the CLR version that you are targeting.

    0 讨论(0)
  • 2020-12-09 08:48

    I found the EFTools.msi file in my packages folder, and run it then choose uninstall then run it again and choose install. After this reinstall, the template appeared.

    0 讨论(0)
  • 2020-12-09 08:49

    When you click on add new item you will get general list of templates. "Visual c# " may be highlighted on left had side menu when you open it. From that you must click on "Data" menu. Now you can see ADO.NET Entity Data Model :)

    0 讨论(0)
  • 2020-12-09 08:52

    I did a search in C:\ProgramData\Package Cache for "eftools.msi"

    There were three versions (from different beta/RCs I guess)

    I picked the most recent and installed it.

    This solved the problem for me.

    0 讨论(0)
  • 2020-12-09 08:57

    It succeeded me in a way just downloaded from given link https://www.microsoft.com/en-in/download/details.aspx?id=40762 and run for repair the Entity framework.

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