IForeignKey.PrincipalEntityType 属性

定义

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

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

属性值

适用于