IReadOnlyForeignKey.PrincipalEntityType 属性

定义

获取此关系面向的主体实体类型。 这可能不同于关系以继承层次结构 (派生类型为目标时定义的类型 PrincipalKey ,因为键是在层次结构) 基类型上定义的。

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

属性值

适用于