Map Entire PostgreSQL DB Into EF Core

As the title says:

dotnet ef dbcontext scaffold "Host=localhost;Database=tribo;Username=tribo;Password=;" Npgsql.EntityFrameworkCore.PostgreSQL -o Models

The above, run on the same folder as a .csproj file (which must include the Microsoft.EntityFrameworkCore.Design and Npgsql.EntityFrameworkCore.PostgreSQL assemblies) will generate a “Models” folder with:

More info: Generating a model from an existing database | Learn Entity Framework Core.