Sdílet prostřednictvím


EntityTypeExtensions.GetDiscriminatorProperty(IEntityType) Metoda

Definice

Upozornění

Use IReadOnlyEntityType.FindDiscriminatorProperty

Vrátí hodnotu IReadOnlyProperty , která se použije k uložení diskriminující hodnoty.

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

Parametry

entityType
IEntityType

Typ entity.

Návraty

Atributy

Platí pro