Repository navigation
Update to .NET 11 and EF Core 11 - #108
Merged
Merged
Conversation
|
FWIW, this is what is currently blocking our upgrade to .NET 11, so it'd be helpful to get this merged and released. |
Owner
|
@ken-swyfft You can move to .Net 11 but keep using EF Core 10 for now. |
Owner
|
@molinch Can you resolve the merge conflict? Thanks. |
EF Core 11 changes IReadOnlyIndex.Properties from a list of IReadOnlyProperty to a list of IReadOnlyPropertyBase, because an index can now include complex properties. A build against EF Core 10 therefore fails at run time with MissingMethodException on IIndex.get_Properties() as soon as a unique constraint is violated (Giorgi#107). IndexDetails now holds the property bases; the interceptor reads only their names. The EntityFrameworkCore.Exceptions packages target net11.0 and EF Core 11.0.0. DbExceptionClassifier keeps net10.0: it does not depend on EF Core. The tests use the newest EF Core 11 providers: Npgsql 11.0.0-rc.3 and MySql.EntityFrameworkCore 11.0.0-preview. The SQL Server, SQLite, PostgreSQL, MySQL and classifier tests pass. The Oracle tests fail inside Oracle.EntityFrameworkCore 10.23, which does not run on EF Core 11 yet. Fixes Giorgi#107 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Oracle.EntityFrameworkCore 10.23 is built for EF Core 10 and fails on EF Core 11 with MissingMethodException on JsonTypeMapping..ctor, before any of our code runs. Remove the filter once Oracle releases a provider for EF Core 11. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
Owner
|
@molinch Once again please :) |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
Thanks @Giorgi 🥳 |
This branch is waiting to be deployed
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.
Fixes #107
EF Core 11 changed
IIndex.Propertiesto returnIReadOnlyList<IPropertyBase>, because indexes can now contain complex properties. With the current build, that means aMissingMethodExceptionon EF Core 11 as soon as a unique constraint is violated.IndexDetailsnow takesIPropertyBase, which is enough since only the property names are read.The rest is the usual version update: the EF Core packages target net11.0 and EF Core 11.0.0, versioned 11.0.0, and the workflows that build them, publish-efcore included, use the 11.0.x SDK. I left DbExceptionClassifier on net10.0 because it doesn't depend on EF Core, so publish-classifier stays on 10.0.x. The 11.0.0 release notes also list your new
UseExceptionProcessoroverload, since 10.0.2 didn't ship it, and AGENTS.md mentions the new target. In the tests,ExecuteSqlInterpolatedbecameExecuteSql, as it's obsolete in 11.Npgsql and MySql.EntityFrameworkCore only have previews for EF Core 11 so far (11.0.0-rc.3 and 11.0.0-preview), so the tests use those for now. The SQL Server, SQLite, PostgreSQL and MySQL tests pass, the new custom classifier tests too. The Oracle tests fail inside Oracle.EntityFrameworkCore itself, which is still built for EF Core 10, so the workflows skip them with a test filter until Oracle releases a provider for EF Core 11.