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 傳回 。

適用於