Skip to content

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

Draft
AndriySvyryd with Copilot wants to merge 1 commit into
preview.7from
copilot/add-low-impact-breaking-change
Draft

Document DbQueryConcurrencyException breaking change for split queries (EF Core 11)#5430
AndriySvyryd with Copilot wants to merge 1 commit 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
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