Skip to content

Commit cdf5b8f

Browse files
committed
use a more precise type with no time component for SqlSystemTypeId.Date
1 parent d37b992 commit cdf5b8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ProgressOnderwijsUtils/SchemaReflection/SqlSystemTypeIdExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ static readonly (Type clrType, SqlSystemTypeId typeId)[] typeLookup = {
6868
(typeof(uint), SqlSystemTypeId.Binary),
6969
(typeof(DateTime), SqlSystemTypeId.DateTime2),
7070
(typeof(DateTime), SqlSystemTypeId.DateTime),
71-
(typeof(DateTime), SqlSystemTypeId.Date),
71+
(typeof(DateOnly), SqlSystemTypeId.Date),
7272
(typeof(DateTime), SqlSystemTypeId.SmallDateTime),
7373
(typeof(DateTimeOffset), SqlSystemTypeId.DateTimeOffset),
7474
(typeof(decimal), SqlSystemTypeId.Decimal),

0 commit comments

Comments
 (0)