Entity Framework not appearing in Add New Item list in Visual Studio 2017
entity-framework, visual-studio, visual-studio-2017
Solution
In .NET Framework-based projects, the Entity Framework 6 templates are still there. However, for .NET Core-based projects, I believe you're expected to use the `dotnet ef` commands. This includes a means of scaffolding a code-first `DbContext` from an existing database. See ASP.NET Core - Existing Database.
To verify this, I setup a demo project with the following structure:
The New Item/Data dialog for the .NET Framework project:
Note that there is also an `EF POCO Generator` template available in the Online templates section that may be of interest to you:
Problem
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?