IReadOnlyForeignKey.PrincipalEntityType 屬性

定義

取得這個關聯性目標的主要實體類型。 這可能與當關聯性以繼承階層中的衍生型別為目標時所定義的類型 PrincipalKey 不同 (,因為索引鍵是在階層的基底類型上定義) 。

public Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType PrincipalEntityType { get; }
member this.PrincipalEntityType : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType
Public ReadOnly Property PrincipalEntityType As IReadOnlyEntityType

屬性值

適用於