Reputation: 2014
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.
Upvotes: 28
Views: 47267
Reputation: 787
Upvotes: 0
Reputation: 2891
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.
Upvotes: 0
Reputation: 4316
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.
Upvotes: 0
Reputation: 2383
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.
Upvotes: 5
Reputation: 1
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 :)
Upvotes: 0
Reputation: 21
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.
Upvotes: 1
Reputation: 3082
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.
Upvotes: 0
Reputation: 97
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.
Upvotes: 1
Reputation: 5189
Press right click on an existing project
select "add" -> "New Item..."
Under "data" node you can select the "ADO.NET Entity Data Model"
Upvotes: 1
Reputation: 12327
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.
Upvotes: 9
Reputation: 1999
Firstly you can add ClassLibrary in your Solution. Then, Add New Item to ClassLibrary and you can add Data>ADO.NET Entity Data Model
Upvotes: 31
Reputation: 6555
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.
Upvotes: 37