Skip to content

Add Devart MySQL support on EF Core 11 - #4

Closed
trejjam wants to merge 5 commits into
mainfrom
feature/devart-ef-core-11
Closed

trejjam wants to merge 5 commits into
mainfrom
feature/devart-ef-core-11

Conversation

@trejjam

@trejjam trejjam commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Summary

Adds the Devart MySQL support from #2 on top of the current upstream main (EF Core 11, xUnit v3 from Giorgi#106).

  • The Devart support from Add Devart support #2 is rebuilt on upstream main. The classifier and the EF Core package keep their names and namespaces (DbExceptionClassifier.MySQL.Devart, EntityFramework.Exceptions.MySQL.Devart), so UseExceptionProcessor() works as before.
  • Devart is updated to 10.3.248, the first release that supports EF Core 11.
  • The Devart tests run against MariaDB 12.2 when DEVART_LICENSE is set, and are skipped with xUnit v3's Assert.Skip when it is not. Without a license the MariaDB container does not start. The Build workflow passes a DEVART_LICENSE repository secret to the tests.
  • The shared tests treat Devart like MySQL, including the new upstream test where MySQL names the primary key PRIMARY.
  • The Devart projects append the DEVART define instead of replacing all defines in AnyCPU builds.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-19T21:54:24.586410Z 1cc1633 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coveralls

coveralls commented Nov 19, 2026 •

Copy link
Copy Markdown

Coverage Report for CI Build 44625771839

Coverage decreased (-0.3%) to 80.938%

Details

  • Coverage decreased (-0.3%) from the base build.
  • Patch coverage: 1 uncovered change across 1 file (0 of 1 lines covered, 0.0%).
  • No coverage regressions found.

Uncovered Changes

File Changed Covered %
DbExceptionClassifier/MySQL/MySQLExceptionClassifier.cs 1 0 0.0%

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 198
Covered Lines: 176
Line Coverage: 88.89%
Relevant Branches: 122
Covered Branches: 83
Branch Coverage: 68.03%
Branches in Coverage %: Yes
Coverage Strength: 46.8 hits per line

💛 - Coveralls

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1cc1633e14

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

- name: Pack
run: |
set -e
for p in Common MySQL Oracle PostgreSQL SqlServer Sqlite; do

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Include the Devart packages in both publishing workflows

When these release workflows run, neither Devart package is published: this loop omits MySQL.Devart, as does the loop in .github/workflows/publish-classifier.yml. The package-count checks also accept those omissions, so releases can succeed without making the retained EF Core 11 Devart support available to NuGet consumers. Add MySQL.Devart to both packing lists and update their expected package counts.

AGENTS.md reference: AGENTS.md:L52-L54

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Not changed. These two workflows publish to nuget.org under the upstream package IDs, which belong to the upstream maintainer, and this fork has no NuGet credentials for them. The fork's Devart packages are not on nuget.org: they are published to the aviationexam Azure DevOps feed, outside these workflows. Adding Devart to the packing lists would not make the packages available to anyone.

@trejjam
trejjam changed the base branch from main to avi-main November 19, 2026 21:59
@trejjam
trejjam changed the base branch from avi-main to main November 19, 2026 22:02
@trejjam
trejjam force-pushed the feature/devart-ef-core-11 branch from 1cc1633 to fa2db2c Compare November 19, 2026 22:02
@trejjam trejjam changed the title Update to upstream main and keep Devart support on EF Core 11 Add Devart MySQL support on EF Core 11 Nov 19, 2026
DbExceptionClassifier.MySQL.Devart and EntityFrameworkCore.Exceptions.MySQL.Devart support the
Devart dotConnect for MySQL driver (Devart.Data.MySql) and its EF Core provider. Like the
MySqlConnector classifier, they link the shared MySQL sources and select the Devart branches with
the DEVART define. Devart exposes the server error number as MySqlException.Code, so the classifier
maps it to its own MySqlErrorCode enum.
MySqlServerDevartTests runs the shared DatabaseTests through Devart.Data.MySql.EFCore against a
MariaDB container. The license key comes from the DEVART_LICENSE environment variable. The shared
tests treat Devart like MySQL: raw SQL without quoted identifiers, no constraint details for
primary keys named PRIMARY, and no CreateTables call for the same-name indexes context.
Devart needs a license to connect. Without DEVART_LICENSE the tests call Assert.Skip,
which xUnit v3 provides, and the fixture does not start the MariaDB container.
With a DEVART_LICENSE repository secret the Build workflow runs the Devart tests;
without it they skip.
@trejjam
trejjam force-pushed the feature/devart-ef-core-11 branch from f232120 to efc978e Compare November 19, 2026 22:08
@trejjam

trejjam commented Nov 19, 2026

Copy link
Copy Markdown
Member Author

Closing: upstream main now has UseExceptionProcessor(IDbExceptionClassifier) in EntityFrameworkCore.Exceptions.Common, which gives the same behavior with a small Devart classifier written by the consumer (all 22 Devart tests pass that way). SharedCore will switch to it when it moves to EF Core 11 and upstream releases 11.0.0. The branch stays for reference.

@trejjam trejjam closed this Nov 19, 2026

This branch was successfully deployed

1 active deployment
internal — efc978ee Deployed Nov 19, 2026 by trejjam via Authorize #7
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