From 688d5681723c261ae9adef5a082bf5deca93da2d Mon Sep 17 00:00:00 2001 From: Shay Rojansky Date: Mon, 30 Mar 2026 20:31:17 +0200 Subject: [PATCH 1/3] Document EFCore.PG targeting PostgreSQL version 16 by default See https://github.com/npgsql/efcore.pg/issues/3798 --- conceptual/EFCore.PG/release-notes/11.0.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/conceptual/EFCore.PG/release-notes/11.0.md b/conceptual/EFCore.PG/release-notes/11.0.md index 53166ad3..de10b84e 100644 --- a/conceptual/EFCore.PG/release-notes/11.0.md +++ b/conceptual/EFCore.PG/release-notes/11.0.md @@ -90,3 +90,12 @@ For more details, see the [temporal constraints documentation](../misc/temporal- ## Other new features * Added `EF.Functions.IntersectsBbox(geom1, geom2)` for expressing [the PostGIS `&&` operator](https://postgis.net/docs/geometry_overlaps.html). Thanks to [@bjornharrtell](https://github.com/bjornharrtell) for this contribution! + +## Breaking changes + +* EF now targets PostgreSQL 16 by default, taking advantage of newer features (previously, PostgreSQL 14 was targeted). You can set the targeted PostgreSQL version when configuring your context: + +```c# +protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) + => optionsBuilder.UseNpgsql("",s => s.SetPostgresVersion(14, 0)); +``` From 374638096fb1532197a2f205bd87ca038d9e30ed Mon Sep 17 00:00:00 2001 From: Shay Rojansky Date: Mon, 30 Mar 2026 21:38:46 +0300 Subject: [PATCH 2/3] Update conceptual/EFCore.PG/release-notes/11.0.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- conceptual/EFCore.PG/release-notes/11.0.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conceptual/EFCore.PG/release-notes/11.0.md b/conceptual/EFCore.PG/release-notes/11.0.md index de10b84e..dc4935d5 100644 --- a/conceptual/EFCore.PG/release-notes/11.0.md +++ b/conceptual/EFCore.PG/release-notes/11.0.md @@ -93,7 +93,7 @@ For more details, see the [temporal constraints documentation](../misc/temporal- ## Breaking changes -* EF now targets PostgreSQL 16 by default, taking advantage of newer features (previously, PostgreSQL 14 was targeted). You can set the targeted PostgreSQL version when configuring your context: +* The provider now assumes at least PostgreSQL 16 by default, taking advantage of newer features (previously, PostgreSQL 14 was targeted). You can configure the targeted PostgreSQL version when configuring your context: ```c# protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) From ea2b465947aded898a3e4db8a657c73b4f77a5da Mon Sep 17 00:00:00 2001 From: Shay Rojansky Date: Mon, 30 Mar 2026 21:38:57 +0300 Subject: [PATCH 3/3] Update conceptual/EFCore.PG/release-notes/11.0.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- conceptual/EFCore.PG/release-notes/11.0.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conceptual/EFCore.PG/release-notes/11.0.md b/conceptual/EFCore.PG/release-notes/11.0.md index dc4935d5..fdac2d30 100644 --- a/conceptual/EFCore.PG/release-notes/11.0.md +++ b/conceptual/EFCore.PG/release-notes/11.0.md @@ -97,5 +97,5 @@ For more details, see the [temporal constraints documentation](../misc/temporal- ```c# protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) - => optionsBuilder.UseNpgsql("",s => s.SetPostgresVersion(14, 0)); + => optionsBuilder.UseNpgsql("", o => o.SetPostgresVersion(14, 0)); ```