Menu

One CLI command to handle EF Core entities and migrations? Let's discuss
📰

One CLI command to handle EF Core entities and migrations? Let's discuss

DEV Community: dotnet·MAHMOUD BU SALEH·about 8 hours ago
#TEF203Up
#devtodotnet#devto#dev#dotnet#core
Reading 0:00
15s threshold

Honestly, whenever I add a new model to an EF Core project, I feel like I'm stuck in the same repetitive loop: create the class file, jump into DbContext to add the DbSet , run migrations add , and then run database update .

Having worked with frameworks like Laravel, I really miss the speed of having one single CLI command that does it all .

I opened a proposal on the official EF Core repo ( #39569 ) to bring that kind of workflow to dotnet-ef —letting us scaffold the entity, wire up the DbSet , and sync the database in one go (via dotnet ef entity create and dotnet ef database sync ).

Good news is, one of the EF Core team members looked at it and moved it into their Backlog rather than closing it.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.