Skip to content

Commit 691a531

Browse files
committed
Depend on Npgsql 7.0.0-preview.1-ci.20211203T135215
1 parent 6970d7d commit 691a531

4 files changed

Lines changed: 11 additions & 7 deletions

File tree

Directory.Packages.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PropertyGroup>
33
<EFCoreVersion>6.0.0</EFCoreVersion>
44
<MicrosoftExtensionsVersion>6.0.0</MicrosoftExtensionsVersion>
5-
<NpgsqlVersion>6.0.0</NpgsqlVersion>
5+
<NpgsqlVersion>7.0.0-preview.1-ci.20211203T135215</NpgsqlVersion>
66
</PropertyGroup>
77

88
<ItemGroup>

EFCore.PG.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
1010
Directory.Packages.props = Directory.Packages.props
1111
.github\dependabot.yml = .github\dependabot.yml
1212
README.md = README.md
13+
NuGet.config = NuGet.config
1314
EndProjectSection
1415
EndProject
1516
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{8537E50E-CF7F-49CB-B4EF-3E2A1B11F050}"

NuGet.config

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<packageSources>
4+
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
5+
<add key="npgsql-vnext" value="https://www.myget.org/F/npgsql-vnext/api/v3/index.json" />
6+
</packageSources>
7+
</configuration>

src/EFCore.PG/Query/ExpressionTranslators/Internal/NpgsqlDateTimeMemberTranslator.cs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,7 @@ public NpgsqlDateTimeMemberTranslator(
4343
if (type != typeof(DateTime)
4444
&& type != typeof(DateTimeOffset)
4545
&& type != typeof(DateOnly)
46-
&& type != typeof(TimeOnly)
47-
#pragma warning disable 618 // NpgsqlDateTime and NpgsqlDate have been obsoleted
48-
&& type != typeof(NpgsqlDateTime)
49-
&& type != typeof(NpgsqlDate))
50-
#pragma warning restore 618
46+
&& type != typeof(TimeOnly))
5147
{
5248
return null;
5349
}
@@ -173,4 +169,4 @@ private SqlExpression GetDatePartExpression(
173169
nameof(DateTimeOffset.LocalDateTime) => _sqlExpressionFactory.Convert(instance, typeof(DateTime), _timestampMapping),
174170
_ => null
175171
};
176-
}
172+
}

0 commit comments

Comments
 (0)