Skip to content

Document DbQueryConcurrencyException breaking change for split queries (EF Core 11) - #5430

Merged
cincuranet merged 2 commits into
preview.7from
copilot/add-low-impact-breaking-change
Jul 30, 2026
Merged

Document DbQueryConcurrencyException breaking change for split queries (EF Core 11)#5430
cincuranet merged 2 commits into
preview.7from
copilot/add-low-impact-breaking-change

Conversation

Copilot AI commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

EF Core 11 (dotnet/efcore#38676) changes split query behavior: instead of silently discarding child collections when concurrent modifications cause out-of-order rows, EF now throws DbQueryConcurrencyException.

Changes to ef-core-11.0/breaking-changes.md

  • New Low row in summary table: Split queries now throw when concurrent modifications are detected
  • New section with old/new behavior, rationale, and three mitigations:
    • Retry on DbQueryConcurrencyException (transient)
    • Wrap in snapshot/serializable transaction
    • Switch to AsSingleQuery()
// EF Core 11: throws instead of silently returning empty Posts
catch (DbQueryConcurrencyException)
{
    // concurrent modification detected — retry or use a transaction
}

Copilot AI changed the title Document DbQueryConcurrencyException breaking change for split queries Document DbQueryConcurrencyException breaking change for split queries (EF Core 11) Jul 28, 2026
Copilot AI requested a review from AndriySvyryd July 28, 2026 00:14
@AndriySvyryd
AndriySvyryd requested a review from Copilot July 28, 2026 23:06

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Documents an EF Core 11 breaking behavioral change for split queries: when concurrent modifications cause split-query result correlation to fail, EF Core now throws DbQueryConcurrencyException instead of silently returning incomplete related collections.

Changes:

  • Adds a new Low-impact entry to the EF Core 11 breaking-changes summary table for split-query concurrency detection.
  • Introduces a new section describing old/new behavior, rationale, and mitigations (retry, transaction, or AsSingleQuery()).

Comment thread entity-framework/core/what-is-new/ef-core-11.0/breaking-changes.md Outdated
Comment thread entity-framework/core/what-is-new/ef-core-11.0/breaking-changes.md
Comment thread entity-framework/core/what-is-new/ef-core-11.0/breaking-changes.md Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@AndriySvyryd
AndriySvyryd marked this pull request as ready for review July 29, 2026 00:58
@AndriySvyryd
AndriySvyryd requested a review from cincuranet July 29, 2026 00:58
@cincuranet
cincuranet merged commit 6e876bb into preview.7 Jul 30, 2026
5 checks passed
@cincuranet
cincuranet deleted the copilot/add-low-impact-breaking-change branch July 30, 2026 09:10
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.

4 participants