Share via


EntityTypeExtensions.GetDiscriminatorProperty(IEntityType) 方法

定義

警告

Use IReadOnlyEntityType.FindDiscriminatorProperty

IReadOnlyProperty 回將用於儲存鑒別子值的 。

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

參數

entityType
IEntityType

實體類型。

傳回

屬性

適用於