From 6649c9774118a311af899b40d171e8691f19016c Mon Sep 17 00:00:00 2001 From: Shay Rojansky Date: Fri, 24 Oct 2025 12:11:34 +0200 Subject: [PATCH] Work on Npgsql 10 breaking change notes --- conceptual/EFCore.PG/release-notes/10.0.md | 1 + conceptual/Npgsql/release-notes/10.0.md | 5 ++++- conceptual/Npgsql/toc.yml | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/conceptual/EFCore.PG/release-notes/10.0.md b/conceptual/EFCore.PG/release-notes/10.0.md index e8ea3ff2..24426462 100644 --- a/conceptual/EFCore.PG/release-notes/10.0.md +++ b/conceptual/EFCore.PG/release-notes/10.0.md @@ -145,6 +145,7 @@ See the [10.0.0 milestone](https://github.com/npgsql/efcore.pg/milestone/68?clos ## Breaking changes * `EF.Functions.Network()` and `EF.Functions.Merge()` have been changed to return the new .NET [`IPNetwork`](https://learn.microsoft.com/dotnet/api/system.net.ipnetwork) instead of the obsolete `NpgsqlCidr`. The new `IPNetwork` type works with all other functions as well (but no breaking changes were necessary). +* The PostgreSQL network type `cidr` is now scaffolded to the new .NET [`IPNetwork`](https://learn.microsoft.com/dotnet/api/system.net.ipnetwork) type. The older Npgsql representation for `cidr` - the `NpgsqlCidr` type - has been obsoleted and will be removed in a future release. ## Contributors diff --git a/conceptual/Npgsql/release-notes/10.0.md b/conceptual/Npgsql/release-notes/10.0.md index 2b2558d5..7ca36f7f 100644 --- a/conceptual/Npgsql/release-notes/10.0.md +++ b/conceptual/Npgsql/release-notes/10.0.md @@ -2,6 +2,9 @@ Npgsql version 10.0 is now in development, preview versions are available on [nuget.org](https://www.nuget.org/packages/Npgsql). +> [!NOTE] +> The 10.0 release notes will be published soon. + ## Breaking changes -* The PostgreSQL network type `cidr` is now scaffolded to the new .NET [`IPNetwork`](https://learn.microsoft.com/dotnet/api/system.net.ipnetwork) type. The older Npgsql representation for `cidr` - the `NpgsqlCidr` type - has been obsoleted and will be removed in a future release. +* The PostgreSQL `date` and `time` types are now read as .NET [`DateOnly`](https://learn.microsoft.com/dotnet/api/system.dateonly) and [`TimeOnly`](https://learn.microsoft.com/dotnet/api/system.timeonly), instead of [`DateTime`](https://learn.microsoft.com/dotnet/api/system.datetime) and [`TimeSpan`](https://learn.microsoft.com/dotnet/api/system.timespan), respectively. This affects non-generic read methods which return `object`, such as and ; you can still read `DateTime` and `TimeSpan` via the generic . diff --git a/conceptual/Npgsql/toc.yml b/conceptual/Npgsql/toc.yml index a4d3fe83..63768801 100644 --- a/conceptual/Npgsql/toc.yml +++ b/conceptual/Npgsql/toc.yml @@ -2,6 +2,8 @@ href: index.md - name: Release notes items: + - name: "10.0 (rc)" + href: release-notes/10.0.md - name: "9.0" href: release-notes/9.0.md - name: "8.0"