Share via


IConventionEntityType.LeastDerivedType(IReadOnlyEntityType) Method

Definition

Gets the least derived type between the specified two.

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

Parameters

otherEntityType
IReadOnlyEntityType

The other entity type to compare with.

Returns

The least derived type between the specified two. If the given entity types are not related, then null is returned.

Applies to