Skip to content

Update to .NET 11 and EF Core 11 - #108

Merged
Giorgi merged 4 commits into
Giorgi:mainfrom
molinch:ef-core-11
Nov 17, 2026
Merged

Giorgi merged 4 commits into
Giorgi:mainfrom
molinch:ef-core-11

Conversation

@molinch

@molinch molinch commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #107

EF Core 11 changed IIndex.Properties to return IReadOnlyList<IPropertyBase>, because indexes can now contain complex properties. With the current build, that means a MissingMethodException on EF Core 11 as soon as a unique constraint is violated. IndexDetails now takes IPropertyBase, 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 UseExceptionProcessor overload, since 10.0.2 didn't ship it, and AGENTS.md mentions the new target. In the tests, ExecuteSqlInterpolated became ExecuteSql, 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.

@ken-swyfft

Copy link
Copy Markdown

FWIW, this is what is currently blocking our upgrade to .NET 11, so it'd be helpful to get this merged and released.

@Giorgi

Giorgi commented Nov 14, 2026

Copy link
Copy Markdown
Owner

@ken-swyfft You can move to .Net 11 but keep using EF Core 10 for now.

@Giorgi

Giorgi commented Nov 15, 2026

Copy link
Copy Markdown
Owner

@molinch Can you resolve the merge conflict? Thanks.

Molinet, Fabien and others added 2 commits November 15, 2026 19:49
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>
@molinch

molinch commented Nov 15, 2026

Copy link
Copy Markdown
Contributor Author

@molinch Can you resolve the merge conflict? Thanks.
@Giorgi done now :)

@Giorgi

Giorgi commented Nov 16, 2026

Copy link
Copy Markdown
Owner

@molinch Once again please :)

Molinet, Fabien and others added 2 commits November 17, 2026 09:34
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Giorgi
Giorgi merged commit fbef194 into Giorgi:main Nov 17, 2026
1 of 3 checks passed
@molinch

molinch commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor Author

Thanks @Giorgi 🥳

@molinch
molinch deleted the ef-core-11 branch November 17, 2026 13:41

This branch is waiting to be deployed

1 waiting deployment
external — aaf4e2a6 Waiting Nov 17, 2026 by molinch via Authorize #104
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.

MissingMethodException on EF Core 11: IIndex.get_Properties()

3 participants