Add API to NpgsqlDataSource to resolve type mappings by vonzshik · Pull Request #6084 · npgsql/npgsql
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that PgTypeInfo is [Experimental], and also in the Internal namespace - I think that up to now the idea was that this was only for converter writers; we'd be exposing this to users for the first time. This also shows in the public API surface of this type - most of the stuff there probably shouldn't be shown to users.
I think that if we want to add an introspection API like this, we need another type. We do have the PostgresType hierarchy, but that really models the PG type only (no CLR type there, for example).
(just noting that there's no real urgent need for this API from my side)
/cc @NinoFloris