dotnet / dotnet/EntityFramework.Docs

Unclear documentation of Property bag entity types

Open
#3,198 2 comments 0 reactions 0 assignees View on GitHub
area-change-tracking area-model-building area-query
Dominant language
Mermaid
Stars
1.7k
Forks
2k
Avg merge
7d 23h
Merged PRs (30d)
16

Description

Please amend the code example under "Property bag entity types" to include how instances of a property bag could be added to the context and how they are queried. I spent hours trying to understand how this works, but I keep getting the following error no matter what I try:

Cannot create a DbSet for 'Dictionary' because it is configured as an shared type entity type. Access the entity type via the `Set` method overload that accepts an entity type name

I see this as a documentation shortcoming. More elaborate example is required.

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: 550a3c36-7f1d-efa7-3ed8-769720168da4
* Version Independent ID: 627c4301-e00d-826e-d545-3a244305dec9
* Content: [Shadow and Indexer Properties - EF Core](https://docs.microsoft.com/en-us/ef/core/modeling/shadow-properties)
* Content Source: [entity-framework/core/modeling/shadow-properties.md](https://github.com/dotnet/EntityFramework.Docs/blob/main/entity-framework/core/modeling/shadow-properties.md)
* Product: **entity-framework**
* Technology: **entity-framework-core**
* GitHub Login: @AndriySvyryd
* Microsoft Alias: **avickers**

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.