dotnet / dotnet/EntityFramework.Docs

Guidelines for immutable/readonly entity types

Open
#2,931 6 comments 0 reactions 1 assignee Assigned to @AndriySvyryd View on GitHub
area-model-building
Dominant language
Mermaid
Stars
1.7k
Forks
2k
Avg merge
7d 23h
Merged PRs (30d)
16

Description

We sometimes get questions about immutable entity types. While these aren't really supported (at least not fully), it may be useful to add a page to our modelling section with some info:

* Explanation that regular change tracking isn't possible and why
* Show possible patterns for working around the above with manual change tracking etc.
* Discuss C# 9 init-only properties (https://github.com/dotnet/docs/issues/21741) and records

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.