IMutableEntityType.LeastDerivedType(IReadOnlyEntityType) Method

Definition

Gets the least derived type between the specified two.

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

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