Unable to generate the model because of the following exception: 'System.Data.Entity.Core.EntityCommandExecutionException: An error occurred while executing the command definition. See the inner exception for details. ---> Npgsql.PostgresException: 42703: column ad.adsrc does not exist
The column pg_attrdef.adsrc was removed in postgres 12. You are probably using an outdated Npgsql [1].