IEntityType.LeastDerivedType(IEntityType) Method

Definition

Gets the least derived type between the specified two.

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

Parameters

otherEntityType
IEntityType

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