共用方式為


RuntimeForeignKey.IForeignKey.PrincipalEntityType 屬性

定義

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

Microsoft.EntityFrameworkCore.Metadata.IEntityType Microsoft.EntityFrameworkCore.Metadata.IForeignKey.PrincipalEntityType { [System.Diagnostics.DebuggerStepThrough] get; }
[<get: System.Diagnostics.DebuggerStepThrough>]
member this.Microsoft.EntityFrameworkCore.Metadata.IForeignKey.PrincipalEntityType : Microsoft.EntityFrameworkCore.Metadata.IEntityType
 ReadOnly Property PrincipalEntityType As IEntityType Implements IForeignKey.PrincipalEntityType

屬性值

實作

屬性

適用於