Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Entity Framework not appearing in Add New Item list in Visual Studio 2017

I created a new MVC project in Visual Studio 2017. I wanted to add an EDMX file (I will be doing database-first) so right clicked on the project and selected Add|New Item.

However, I cannot find the Entity Framework components that were available in the previous versions of Visual Studio. Does anyone know where they went?

enter image description here

like image 703
Jonathan Wood Avatar asked Mar 18 '17 17:03

Jonathan Wood


People also ask

Does DbContext implement IDisposable?

Second, the DbContext class does indeed implement IDisposable out of the box.

How do I add a new model in Entity Framework?

Right-click the Models folder in the Solution Explorer window and select the menu option Add, New Item. In the Add New Item dialog, select the Data category (see Figure 1). Select the ADO.NET Entity Data Model template, give the Entity Data Model the name MoviesDBModel. edmx, and click the Add button.

How do I add ado net entity data model in Visual Studio?

Create the ADO.NET Entity Data ModelRight-click on your project in the Solution Explorer window and select the menu option Add -> New Item. In the Add New Item dialog, select the Data category. Select the ADO.NET Entity Data Model template, give the Entity Data Model the name Northwind. edmx, and click the Add button.


1 Answers

I had a similar issue today after i updated my VS to the latest 2017 version. I tried to open an .edmx file in VS2017 and it didn't show the designer view. So i realised i forgot to select Entity Framework tools during the installation:

enter image description here

Everything is back to normal :)

like image 75
Ricky Avatar answered Oct 12 '22 16:10

Ricky