Vogen icon indicating copy to clipboard operation
Vogen copied to clipboard

Add unsigned primitives (ulong, uint, etc) to conversion generators.

Open Vespion opened this issue 5 months ago • 1 comments

Describe the feature

Currently, the _knownPrimitives property in the Templates class does not contain any entries for unsigned types such as ulong, uint, or ushort.

This is problematic if your value objects use one of these types as the underlying value when generating converters. Especially for EF Core converters, as the default behaviour is causing columns matched to these properties to be treated as strings rather than the actual column types they should be.

While on the surface it appears that simply adding these additional entries to the _knownPrimitives property will enable this enhancement, I wonder if there was a specific reason why these types were excluded.

Vespion avatar Jul 25 '25 19:07 Vespion

Hi, thanks for the feedback. It should be fairly straightforward, although might involve a lot of touch points and will probably double the amount of tests. I'll try to get around to it soon.

SteveDunn avatar Aug 01 '25 05:08 SteveDunn