IReadOnlyEntityType.LeastDerivedType(IReadOnlyEntityType) 方法

定义

获取指定两者之间派生最少的类型。

public virtual Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType? LeastDerivedType (Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType otherEntityType);
abstract member LeastDerivedType : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType
override this.LeastDerivedType : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType
Public Overridable Function LeastDerivedType (otherEntityType As IReadOnlyEntityType) As IReadOnlyEntityType

参数

otherEntityType
IReadOnlyEntityType

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

返回

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

适用于