dotnet / dotnet/EntityFramework.Docs
Guidelines for immutable/readonly entity types
Open
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
Assessment
This issue has not been assessed yet.