EntityTypeExtensions.GetDiscriminatorProperty(IEntityType) Method

Definition

Caution

Use IReadOnlyEntityType.FindDiscriminatorProperty

Returns the IReadOnlyProperty that will be used for storing a discriminator value.

public static Microsoft.EntityFrameworkCore.Metadata.IProperty GetDiscriminatorProperty (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
[System.Obsolete("Use IReadOnlyEntityType.FindDiscriminatorProperty")]
public static Microsoft.EntityFrameworkCore.Metadata.IProperty? GetDiscriminatorProperty (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
static member GetDiscriminatorProperty : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IProperty
[<System.Obsolete("Use IReadOnlyEntityType.FindDiscriminatorProperty")>]
static member GetDiscriminatorProperty : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IProperty
<Extension()>
Public Function GetDiscriminatorProperty (entityType As IEntityType) As IProperty

Parameters

entityType
IEntityType

The entity type.

Returns

Attributes

Applies to