共用方式為


IForeignKey.PrincipalEntityType 屬性

定義

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

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

屬性值

適用於