You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Pluggable name translation for enum and composite #859
For enum and composite types, Npgsql maps CLR types to PostgreSQL types, raising the question of field mappings. Currently Npgsql doesn't do anything specific, meaning that a field foo in a PG composite type with a field foo will get mapped to a CLR field foo, which violates C# field naming conventions (should be Foo). We already have support for manually specifying [PgName] on the CLR side, but forcing users to annotate all their fields in this way doesn't seem very nice.
Allow the user to specify a FieldMappingConvention which will take care of this translation, and provide a sane default.
Activity
[-]Pluggable field mapping convention[/-][+]Pluggable name translation for enum and composite[/+]Pluggable name translation for composite/enum
Added NpgsqlNullNameTranslator