Skip to content

Update to Npgsql 11.0.0 and refresh dependencies - #4139

Merged
roji merged 2 commits into
mainfrom
roji-dependency-updates
Nov 20, 2026
Merged

roji merged 2 commits into
mainfrom
roji-dependency-updates

Conversation

@roji

@roji roji commented Nov 20, 2026

Copy link
Copy Markdown
Member

Move the EF Core provider and its NodaTime and NetTopologySuite plugins to Npgsql 11.0.0 GA.

  • Remove Npgsql.DependencyInjection, now built into the driver, and stop setting Multiplexing, which the driver removed. Admin connections still disable pooling.
  • Rename the provider's NpgsqlServiceCollectionExtensions to NpgsqlEntityFrameworkServiceCollectionExtensions to avoid a type-name collision with the driver. Extension method calls such as services.AddNpgsql<MyContext>(...) are unchanged; only callers that reference the provider class directly need to update.
  • Refresh SourceLink, Microsoft.NET.Test.Sdk, xUnit, the Microsoft xUnit extensions, and Testcontainers. Switch the PostgreSQL 19 CI job from RC1 to the stable image, still without PostGIS.

Copilot AI balanced review requested due to automatic review settings November 20, 2026 14:46
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@roji
roji force-pushed the roji-dependency-updates branch from b27c8ca to 803e942 Compare November 20, 2026 14:47
@roji
roji enabled auto-merge (squash) November 20, 2026 14:47

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The Npgsql 11.0.0 upgrade still needs runtime validation of driver DI registration, NodaTime/spatial serialization, and admin connection lifecycle because dependency-based builds and database tests could not be run in the review environment.

No open issues 🎉

What changed in this PR

Aligns EFCore.PG and its NodaTime and NetTopologySuite plugins with Npgsql 11.0.0 GA, including driver API changes and refreshed test infrastructure.

Changes:

  • Updates driver and test-tool dependencies and removes the separate Npgsql.DependencyInjection package.
  • Renames the provider’s service-registration class and removes the obsolete Multiplexing setting, while keeping admin connection pooling disabled.
  • Switches PostgreSQL 19 CI to the stable image without PostGIS and updates affected test expectations.
File Description
test/​EFCore.PG.Tests/​NpgsqlRelationalConnectionTest.cs Removes Multiplexing from expected admin connection strings.
test/​EFCore.PG.Tests/​EFCore.PG.Tests.csproj Removes the separate driver DI package reference.
test/​EFCore.PG.FunctionalTests/​NpgsqlApiConsistencyTest.cs References the renamed service-registration class.
src/​EFCore.PG/​Storage/​Internal/​NpgsqlRelationalConnection.cs Stops setting Multiplexing; retains disabled admin pooling.
src/​EFCore.PG/​Extensions/​NpgsqlEntityFrameworkServiceCollectionExtensions.cs Renames the extension class to avoid the driver’s type-name collision.
Directory.Packages.props Updates centralized dependency versions and removes the DI package entry.
.github/​workflows/​build.yml Uses stable PostgreSQL 19 and explicitly disables PostGIS enforcement for that job.

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings November 20, 2026 14:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The class rename also breaks already-compiled extension-method callers, so the documentation must identify the binary breaking change and require dependent assemblies to be recompiled.

1 open issue

Review effort: Balanced

Keep xUnit 4.0.1 so the inherited stored procedure tests run. Assert the exception chain from Npgsql 11 when binding invalid timestamp parameters.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings November 20, 2026 15:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are reported for the Npgsql 11.0.0 upgrade and related provider adaptations.

1 open issue

Review effort: Balanced

@roji
roji merged commit fd3674f into main Nov 20, 2026
15 checks passed
@roji
roji deleted the roji-dependency-updates branch November 20, 2026 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants