dotnet / EntityFramework.Docs

Documentation for Entity Framework Core and Entity Framework 6
https://docs.microsoft.com/ef/
Creative Commons Attribution 4.0 International
1.63k stars 1.96k forks source link

Document that `Property` creates indexer properties on property bag entity types #3396

Open lukaepti opened 3 years ago

lukaepti commented 3 years ago

The example for Property bag entity types configures properties using Property. Shouldn't that be IndexerProperty instead in accordance with the description

Entity types that contain only indexer properties are known as property bag entity types.

as well as the Shared-type entity types and property bags example from "What's New in EF Core 5.0"?


Document Details

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

ajcvickers commented 3 years ago

@lukaepti Using Property in this way actually creates indexer properties when the entity type is a property bag, so the sample does the correct thing. However, we should clarify this in the docs.