Hey C# devs,
Whenever I add a new entity to an EF Core project, I find myself doing the exact same manual routine every single time: create the model file, jump into DbContext to register the DbSet, run dotnet ef migrations add, and then run dotnet ef database update.
It's a lot of repetitive friction for something we do daily. If you've ever used tools like Laravel Artisan, you know how nice it is to have one single CLI command that does it all in seconds.
I opened a feature proposal on the official EF Core GitHub repo (#39569) suggesting two unified commands to streamline this:
- dotnet ef entity create (scaffolds the entity file and registers the DbSet automatically)
- dotnet ef database sync (handles migration creation and database update in one atomic step)
One of the EF Core team members reviewed the proposal and moved it into their Backlog, noting that community upvotes (👍) are what help prioritize features like this for upcoming releases.
If you'd love to see a single-command workflow like this built natively into EF Core, head over to the GitHub issue and drop a 👍 so the team knows there's real demand for it:
https://github.com/dotnet/efcore/issues/39569
Curious to hear your thoughts—do you think this would speed up your daily workflow?
Join the conversation! Your thoughts help the community grow.