When NpgsqlDbType/DbType/DataTypeName are read on NpgsqlParameter without having been previously set, we infer them (e.g. from Value). This currently goes through all resolvers every time, and may affect perf in certain scenarios; we can cache this, similar to what we do for type handlers on ConnectorTypeMapping.
When NpgsqlDbType/DbType/DataTypeName are read on NpgsqlParameter without having been previously set, we infer them (e.g. from Value). This currently goes through all resolvers every time, and may affect perf in certain scenarios; we can cache this, similar to what we do for type handlers on ConnectorTypeMapping.