Missing ADO.NET entity data model template from vi

2019-01-17 19:41发布

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.

11条回答
神经病院院长
2楼-- · 2019-01-17 20:28

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.

查看更多
三岁会撩人
3楼-- · 2019-01-17 20:30

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.

查看更多
Rolldiameter
4楼-- · 2019-01-17 20:33

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.

查看更多
相关推荐>>
5楼-- · 2019-01-17 20:34

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 :)

查看更多
狗以群分
6楼-- · 2019-01-17 20:37

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.

查看更多
女痞
7楼-- · 2019-01-17 20:37

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.

查看更多
登录 后发表回答