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
Allow mapping C# byte to PostgreSQL smallint #1766
Activity
Shkarlatov commentedon Jan 5, 2018
I believe that this should be a standard feature. In plugins you only need to specify the customs types.
YohDeadfall commentedon Mar 14, 2018
I think that it should be out of the box too since it's a standard CLR type. Could I take the issue, @roji?
roji commentedon Mar 14, 2018
Looking at this again I agree that it makes sense to allow this mapping built-in rather than by a plugin.
Go ahead @YohDeadfall, this should be trivial.
YohDeadfall commentedon Mar 14, 2018
Wow! It was really trivial because we already have it for a few years.
npgsql/src/Npgsql/TypeHandlers/NumericHandlers/Int16Handler.cs
Lines 39 to 54 in 1768aa7
roji commentedon Mar 14, 2018
Oops, that's embarrassing :) I must have totally forgotten about this...
Well, that was the easiest issue resolution ever. I'll go make sure this is also supported at the EF Core level.
Brar commentedon Mar 14, 2018
Haha, I was actually wondering what you're talking about since it couldn't possibly be a feature that is implemented and documented.