• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Giorgi / EntityFramework.Exceptions / 44058506047

17 Nov 2026 09:45AM UTC coverage: 80.357% (-6.3%) from 86.607%
44058506047

push

github

web-flow
Update to .NET 11 and EF Core 11 (#108)

* Update to .NET 11 and Entity Framework Core 11

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 (#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 #107

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Skip the Oracle tests in CI until Oracle supports EF Core 11

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>

* Update AGENTS.md for the net11.0 target of the EF Core packages

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Molinet, Fabien <molinetf@medgate.ch>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

85 of 126 branches covered (67.46%)

Branch coverage included in aggregate %.

2 of 2 new or added lines in 1 file covered. (100.0%)

8 existing lines in 2 files now uncovered.

185 of 210 relevant lines covered (88.1%)

36.65 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/EntityFramework.Exceptions/Oracle/OracleExceptionProcessorInterceptor.cs
1
using DbExceptionClassifier.Oracle;
2
using EntityFramework.Exceptions.Common;
3
using Microsoft.EntityFrameworkCore;
4
using Oracle.ManagedDataAccess.Client;
5

6
namespace EntityFramework.Exceptions.Oracle;
7

8
class OracleExceptionProcessorInterceptor()
UNCOV
9
    : ExceptionProcessorInterceptor<OracleException>(new OracleExceptionClassifier());
×
10

11
public static class ExceptionProcessorExtensions
12
{
13
    public static DbContextOptionsBuilder UseExceptionProcessor(this DbContextOptionsBuilder self)
UNCOV
14
        => self.AddInterceptors(new OracleExceptionProcessorInterceptor());
×
15

16
    public static DbContextOptionsBuilder<TContext> UseExceptionProcessor<TContext>(this DbContextOptionsBuilder<TContext> self) where TContext : DbContext
UNCOV
17
        => self.AddInterceptors(new OracleExceptionProcessorInterceptor());
×
18
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc