Skip to content

Commit d5cb814

Browse files
committed
feat(orm): add unchecked casts for ushort and byte types
1 parent 2fc1aff commit d5cb814

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Program.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,8 @@ private static object NormalizeKey(object id)
219219
{
220220
ulong value => unchecked((long)value),
221221
uint value => unchecked((int)value),
222+
ushort value => unchecked((short)value),
223+
byte value => unchecked((sbyte)value),
222224
_ => id
223225
};
224226
}

0 commit comments

Comments
 (0)