Cosmos: preserve unmapped properties

Open
#38,631 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Quiet
Tech stack
csharp
Domain
database

Research direction

Start by reviewing the proposed entity-type-level PreserveUnmappedProperties configuration and the alternative in issue #20584 about mapping dynamic properties to a Dictionary<string, object>. Done means updates no longer override unmapped properties, with the performance tradeoff and chosen approach clearly addressed.

Written by the indexing model from the issue text.

Description

area-cosmos area-save-changes

Currently unmapped properties can be overridden during updates. An entity-type level configuration like PreserveUnmappedProperties could be introduced to avoid this at the cost of performance.

Alternatively, https://github.com/dotnet/efcore/issues/20584 would allow to map all dynamic properties to a Dictionary<string, object>

Dominant language
C#
Stars
14.8k
Forks
3.5k
Avg merge
3d 7h
Merged PRs (30d)
182

Getting set up

Open in Codespaces

Starts the project's dev container in your browser, under your own GitHub account.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from dotnet/efcore

All issues in dotnet/efcore

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.