EntityTypeExtensions.IsStrictlyDerivedFrom(IEntityType, IEntityType) 方法

定义

确定此实体类型是否派生自 (但与给定实体类型) 不同。

public static bool IsStrictlyDerivedFrom (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Metadata.IEntityType baseType);
static member IsStrictlyDerivedFrom : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> bool
<Extension()>
Public Function IsStrictlyDerivedFrom (entityType As IEntityType, baseType As IEntityType) As Boolean

参数

entityType
IEntityType

实体类型。

baseType
IEntityType

要检查的实体类型(如果它是 的entityType基类型)。

返回

true 如果 entityType 派生自 (但与) baseType不同,则为 ,否则为 false

适用于