Skip to content

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

Draft
AndriySvyryd with Copilot wants to merge 1 commit into
preview.7from
copilot/implement-ef-core-documentation-update
Draft

Document Cosmos JSON breaking changes for EF Core 11#5432
AndriySvyryd with Copilot wants to merge 1 commit 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
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