28
votes

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 modified the Visual Studio 2012 installation, and selected all the available packages to install. But even then no luck.

12
My problem was that I thought this was a project template, but it is an item template. - Nacht

12 Answers

37
votes

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.

30
votes

Firstly you can add ClassLibrary in your Solution. Then, Add New Item to ClassLibrary and you can add Data>ADO.NET Entity Data Model

8
votes

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.

5
votes

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.

1
votes
  1. Press right click on an existing project

  2. select "add" -> "New Item..."

  3. Under "data" node you can select the "ADO.NET Entity Data Model"

Here I found the solution

1
votes

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.

1
votes

If you have installed the new EFTools6.1.3ForVS2013.msi, and then uninstalled it, it removes the ADO.net Entity Model option. Microsoft never puts the old version back. Thank you Hainesy.

0
votes

I faced the same issue today. But in my C:\ProgramData\Package Cache folder there was only one eftools.msi file. I installed it. Still the template was missing. Then I installed the same msi file again with repair option. Then the template appeared.

0
votes

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
votes

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
votes

I had the same problem with Visual Studio Express 2013. If you have that problem, don't reinstall Visual Studio, you have to repair EF tools:

Search in C:\ProgramData\Package Cache for "eftools.msi"

Pick the most recent, run it and select repair.

0
votes
  1. Right click on the Project In Solution Explorer
  2. Add > New Item > Data > ADO.NET Entity Data Model You can update here

enter image description here