Share via


CosmosEntityTypeExtensions.GetHasShadowId(IReadOnlyEntityType) Method

Definition

Returns a value indicating whether model building will always create a "__id" shadow property mapped to the JSON "id". This was the default behavior before EF Core 9.0.

public static bool? GetHasShadowId(this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType entityType);
static member GetHasShadowId : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> Nullable<bool>
<Extension()>
Public Function GetHasShadowId (entityType As IReadOnlyEntityType) As Nullable(Of Boolean)

Parameters

entityType
IReadOnlyEntityType

The entity type.

Returns

true to force __id creation, false to not force __id creation, null to revert to the default setting.

Applies to