EntityTypeExtensions.LeastDerivedType(IEntityType, IEntityType) 方法

定义

获取指定两个值之间的最小派生类型。

public static Microsoft.EntityFrameworkCore.Metadata.IEntityType LeastDerivedType (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType, Microsoft.EntityFrameworkCore.Metadata.IEntityType otherEntityType);
static member LeastDerivedType : Microsoft.EntityFrameworkCore.Metadata.IEntityType * Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IEntityType
<Extension()>
Public Function LeastDerivedType (entityType As IEntityType, otherEntityType As IEntityType) As IEntityType

参数

entityType
IEntityType

实体类型。

otherEntityType
IEntityType

要与之比较的另一个实体类型。

返回

指定两个值之间的最小派生类型。 如果给定的实体类型不相关,则 null 返回 。

适用于