IConventionForeignKey.PrincipalEntityType 属性

定义

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

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

属性值

适用于