As the title states, I've installed the .NET Core 2.1 SDK and created a new .NET Core 2.1 project. When I go to Project > Add Item... > Data, I do not have the ADO.NET Entity Data Model option.
I am using Visual Studio 2017 15.7.3, which I've installed only hours ago.
The Error and Warning logs are clean.
Any assistance is appreciated.
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.
NET Core. So as long as you have a valid connection string to connect to your existing legacy database, you should be just fine.
You can use EF Core for all your entities and migrations as well as any ASP.NET Core apps, and use EF6 as "code first with an existing database" for compatibility in legacy apps.
EF is built on top of ADO.Net, meaning that you can use both at the same time.
EntityFramework Core doesn't use the "EDMX" data model designers, it is purely code-first.
See the Getting Started with EF Core on ASP.NET Core with an Existing Database to scaffold a database context from an existing database or create a new model and use migrations to create and update databases.
Update: In .NET Core 3.0, you will be able to use Entity Framework 6 along with .edmx models (which may require VS 2019)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With