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

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

查看更多
虎瘦雄心在
3楼-- · 2019-01-17 20:40

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.

查看更多
ら.Afraid
4楼-- · 2019-01-17 20:42
  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

查看更多
欢心
5楼-- · 2019-01-17 20:42

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.

查看更多
霸刀☆藐视天下
6楼-- · 2019-01-17 20:45

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.

查看更多
登录 后发表回答