IdDiscriminatorMode Enum
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines the behavior for including discriminator values in the JSON "id" value.
public enum IdDiscriminatorMode
type IdDiscriminatorMode =
Public Enum IdDiscriminatorMode
- Inheritance
-
IdDiscriminatorMode
Name | Value | Description |
---|---|---|
None | 0 | No discriminator value is included in the "id" value. |
EntityType | 1 | The discriminator value of the entity type is included in the "id" value. This was the default behavior before EF Core 9. |
RootEntityType | 2 | The discriminator value of the root entity type is included in the "id" value. This allows types with the same primary key to be saved in the same container, while still allowing "ReadItem" to be used for lookups of an unknown type. |
Продукт | Версии |
---|---|
Entity Framework Core | 9.0 |
Обратна връзка за Entity Framework
Entity Framework е проект с отворен код. Изберете връзка, за да предоставите обратна връзка: