Repository navigation
Sync to EF 11.0.0 - #4125
Merged
Merged
Sync to EF 11.0.0#4125
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: f1ccfb3b-c59d-49f5-875c-3b2cc049752f
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The review records no active issues with the EF Core 11 and .NET 11 update.
No open issues 🎉
What changed in this PR
Updates the Npgsql EF Core provider to released EF Core 11.0.0 and .NET 11, adopting upstream fixes and removing obsolete provider workarounds.
Changes:
- Updates SDK, package versions, and EF dependency ranges for the stable release.
- Uses upstream JSON-index metadata and per-element sort directions, and removes duplicate NULLIF translation.
- Adds positive regression tests and SQL assertions, and updates complex-property column-name baselines.
| File | Description |
|---|---|
test/EFCore.PG.Tests/Migrations/JsonIndexTest.cs |
Tests successful migration compilation, snapshot round-trips, and mixed index directions. |
test/EFCore.PG.FunctionalTests/Query/Translations/Operators/MiscellaneousOperatorTranslationsNpgsqlTest.cs |
Adds NULLIF regression SQL assertions. |
test/EFCore.PG.FunctionalTests/Query/NorthwindGroupByQueryNpgsqlTest.cs |
Adds GroupBy/Distinct with DefaultIfEmpty SQL assertions. |
test/EFCore.PG.FunctionalTests/Query/Inheritance/TPCInheritanceTableSplittingQueryNpgsqlTest.cs |
Updates inherited and nested complex-property column baselines. |
test/EFCore.PG.FunctionalTests/Query/Inheritance/TPCInheritanceQueryNpgsqlTest.cs |
Updates TPC complex-property column baselines. |
test/EFCore.PG.FunctionalTests/Query/ComplexTypeQueryNpgsqlTest.cs |
Updates base complex-property column prefixes for TPC. |
test/EFCore.PG.FunctionalTests/Query/Associations/Navigations/NavigationsBulkUpdateNpgsqlTest.cs |
Replaces fixed ExecuteUpdate failure expectations with SQL assertions. |
test/EFCore.PG.FunctionalTests/Query/Associations/ComplexJson/ComplexJsonMiscellaneousNpgsqlTest.cs |
Tests successful FromSql queries over JSON complex properties. |
test/EFCore.PG.FunctionalTests/Migrations/NpgsqlMigrationsSqlGeneratorTest.cs |
Moves JSON-index sort configuration into model metadata. |
src/EFCore.PG/Query/Internal/NpgsqlSqlTranslatingExpressionVisitor.cs |
Removes the provider’s duplicate NULLIF translation. |
src/EFCore.PG/Migrations/NpgsqlMigrationsSqlGenerator.cs |
Reads per-element JSON-index sort directions. |
src/EFCore.PG/Metadata/Internal/NpgsqlAnnotationProvider.cs |
Removes the RC-era JSON-index annotation exclusion. |
global.json |
Selects the released .NET 11 SDK. |
Directory.Packages.props |
Updates dependencies and allows EF 11 releases below 12.0.0. |
Directory.Build.props |
Sets the provider version prefix to 11.0.0. |
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
[11.0.0,12.0.0)range.Upstream PRs requiring provider adjustments
Validation
Build and all three provider packages succeed. Full CI-enabled unit and functional suites against isolated PostgreSQL 18.4 with PostGIS 3.6.3: 29,868 passed, 227 skipped, 1 failed.
The sole failure,
TPCInheritanceQueryNpgsqlTest.Can_insert_update_delete, expects generated key 4 in its SQL baseline but receives 3. The identical failure was reproduced independently against unchanged RC3 source at fc542f2, so it is left untouched. All upgrade-related tests pass.