Skip to content

Commit b0a4fcf

Browse files
authored
Merge pull request #1226 from progressonderwijs/robin/move-back-down
Changed SQL date type mapping to prioritize DateOnly over DateTime
2 parents e50a041 + dd372c1 commit b0a4fcf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/ProgressOnderwijsUtils/ProgressOnderwijsUtils.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<Import Project="..\NugetPackagesCommon.props" />
33
<PropertyGroup Label="Configuration">
4-
<Version>112.0.1</Version>
5-
<PackageReleaseNotes>Extended the lookup to determine the underlying sql type for DateOnly</PackageReleaseNotes>
4+
<Version>113.0.0</Version>
5+
<PackageReleaseNotes>Changed SQL date type mapping to prioritize DateOnly over DateTime</PackageReleaseNotes>
66
<Title>ProgressOnderwijsUtils</Title>
77
<Description>Collection of utilities developed by ProgressOnderwijs</Description>
88
<PackageTags>ProgressOnderwijs</PackageTags>

src/ProgressOnderwijsUtils/SchemaReflection/SqlSystemTypeIdExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ 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),
7271
(typeof(DateOnly), SqlSystemTypeId.Date),
72+
(typeof(DateTime), SqlSystemTypeId.Date),
7373
(typeof(DateTime), SqlSystemTypeId.SmallDateTime),
7474
(typeof(DateTimeOffset), SqlSystemTypeId.DateTimeOffset),
7575
(typeof(decimal), SqlSystemTypeId.Decimal),

0 commit comments

Comments
 (0)