CosmosEntityTypeExtensions.GetHasShadowId(IReadOnlyEntityType) Method
Definition
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.
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.