Skip to content

Document Cosmos JSON breaking changes for EF Core 11 - #5432

Merged
cincuranet merged 4 commits into
preview.7from
copilot/implement-ef-core-documentation-update
Jul 30, 2026
Merged

Document Cosmos JSON breaking changes for EF Core 11#5432
cincuranet merged 4 commits into
preview.7from
copilot/implement-ef-core-documentation-update

Conversation

Copilot AI commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

EF Core 11 (dotnet/efcore#38550) replaces Newtonsoft.Json/JObject with System.Text.Json in the Cosmos materializer, removing __jObject and dropping unmapped property preservation.

Breaking changes documented (breaking-changes.md)

New High-impact changes section added before the existing Medium-impact section:

  • __jObject shadow property removedJObject no longer exists on entities; accessing it throws. Mitigation: use CosmosClient directly to read raw JSON.
  • Unmapped properties no longer preserved — Extra JSON fields not in the EF model are silently dropped on round-trip. Mitigation: map all fields, or use CosmosClient.

New Low-impact entry added:

  • Floating-point truncation — Query results cast to fixed-point types (int, decimal, etc.) are now truncated instead of rounded, fixing dotnet/efcore#38138.

What's new (whatsnew.md)

Added Modernized JSON serializer section to the Cosmos DB area noting the switch to System.Text.Json and linking to the breaking changes.

Provider docs (unstructured-data.md)

Updated the __jObject section to reflect that the property is gone in EF Core 11, with a link to the breaking change entry.

Copilot AI changed the title Document Cosmos JSON breaking changes Document Cosmos JSON breaking changes for EF Core 11 Jul 28, 2026
Copilot AI requested a review from AndriySvyryd July 28, 2026 00:26
@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 EF Core 11 breaking changes for the Azure Cosmos DB provider related to switching the internal JSON materializer from Newtonsoft.Json/JObject to System.Text.Json, including the removal of __jObject and the loss of unmapped-property round-tripping.

Changes:

  • Adds new high-impact breaking change entries covering __jObject removal and unmapped property loss, plus a low-impact note on numeric truncation behavior.
  • Updates EF Core 11 “What’s New” with a Cosmos section describing the modernized JSON serializer and pointing to the breaking changes.
  • Updates Cosmos provider “unstructured data” docs to clarify __jObject is removed in EF Core 11 and link to the breaking change.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
entity-framework/core/what-is-new/ef-core-11.0/whatsnew.md Adds a Cosmos “Modernized JSON serializer” section and links to breaking changes.
entity-framework/core/what-is-new/ef-core-11.0/breaking-changes.md Adds new Cosmos breaking change entries (high + low impact) and mitigations.
entity-framework/core/providers/cosmos/unstructured-data.md Updates __jObject guidance for EF Core 11 and links to the breaking changes.

Comment thread entity-framework/core/providers/cosmos/unstructured-data.md Outdated
Comment thread entity-framework/core/what-is-new/ef-core-11.0/breaking-changes.md
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Comment thread entity-framework/core/what-is-new/ef-core-11.0/breaking-changes.md Outdated
Copilot AI requested a review from AndriySvyryd July 29, 2026 00:19
@AndriySvyryd
AndriySvyryd marked this pull request as ready for review July 29, 2026 00:38
@AndriySvyryd
AndriySvyryd requested a review from cincuranet July 29, 2026 01:22
@cincuranet

Copy link
Copy Markdown
Contributor

@copilot resolve the merge conflicts in this pull request

Copilot AI commented Jul 30, 2026

Copy link
Copy Markdown
Contributor Author

@copilot resolve the merge conflicts in this pull request

Resolved in commit c035b97 by merging preview.7 into this branch and resolving the conflict in entity-framework/core/what-is-new/ef-core-11.0/whatsnew.md.

Copilot AI requested a review from cincuranet July 30, 2026 09:16
@cincuranet
cincuranet merged commit a1725ce into preview.7 Jul 30, 2026
5 checks passed
@cincuranet
cincuranet deleted the copilot/implement-ef-core-documentation-update branch July 30, 2026 09:20
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