共用方式為


RuntimeForeignKey.IReadOnlyForeignKey.PrincipalEntityType 屬性

定義

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

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

屬性值

實作

屬性

適用於