Generate code for a DbContext and entity types for a database

dotnet ef

  • Perform design-time development tasks for Entity Framework Core.
    More information: <https://learn.microsoft.com/ef/core/cli/dotnet>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

dotnet ef dbcontext scaffold {{connection_string}} {{provider}}

click the source code to copy install dotnet ef on any operating system with command-not-found.com