does Visual Studio 2015 include .edmx support?

2020-07-06 03:53发布

Does Visual Studio 2015 include .edmx support?

I have a project that includes an .edmx data model and double-clicking it in VS2015 just opens the XML editor.

There's no DbContext generator option in the file->new dialog.

2条回答
家丑人穷心不美
2楼-- · 2020-07-06 04:19

During setup of VS2015, go to the advanced options and select Web or Database Development tools. Now the Installers install the EF tools (Designer + templates). If you have VS already installed, to the Programs & features in control panel and modify the currently installed VS2015.

查看更多
等我变得足够好
3楼-- · 2020-07-06 04:21

You have to select the Microsoft SQL Server Data Tools in the VS2015 setup to get this editor back.

NOTE: You can modify the current installation via Program And Features as magicandre1981 has already suggested.

see how this is done here

查看更多
登录 后发表回答