Database-first approach on Entity Framework Core

Just a quick tip for those of you disappointed by the lack of a UI-based option to go database-first on Entity Framework Core.

The feature is still there (more or less…), you have to open the Package Manager Console on Visual Studio and use the Scaffold-DbContext command to generate the data context.

Unlike the old (?) data context (EDMX), the Scaffold-DbContext command generates a standalone data context class and every new execution…