john Cogdle
john Cogdle

Reputation: 1533

Why .edmx auto generation no longer in .net core

I just noticed new Entity Framework Core does not provide .edmx generation any more. But I was loving this because it helps me to focus on application logic, not always create class and do migration things to update database. Now my question is- Does Microsoft have any future plan to add .edmx on Entity Framework Core? Or its permanently gone from .Entity Framework Core? I searched over internet but didn’t found any good answer for that.

Upvotes: 1

Views: 717

Answers (3)

Liakat Hossain
Liakat Hossain

Reputation: 1384

If you are on heavy load complex database and developing application using this database continuously then there is no easier way than just press refresh button in .edmx file and get your new models ready to use. I think .edmx idea still deserves development for future. Lot of solution already made with it and continuing with .edmx

Upvotes: -1

Vivek Nuna
Vivek Nuna

Reputation: 1

Edmx is not there in Entity Framework Core. It only supports a code-first approach. It produces entity class files instead of an edmx file. You can use dotnet ef dbcontext scaffold, it scaffolds a DbContext and entity types for a database.

You can refer the document to start with the already existing database. https://learn.microsoft.com/en-us/ef/core/get-started/aspnetcore/existing-db

Upvotes: 2

Vitalii Isaenko
Vitalii Isaenko

Reputation: 989

I have not found any justification of this decision though I suppose this discussion can be found at least in some podcasts with EF team members interviews. In my opinion, this feature simply didn't deserve enough attention from developers and it didn't worth it to continue its support. Most people, as far as I'm concerned, moved towards code-first approach. You can concentrate on application logic even better with it, not creating any data objects in advance, but evolving your data structure together with business logic objects. That's what I can say based on my experience. Try it and maybe you will love it the same!

Upvotes: 2

Related Questions