TypeBaseNameComparer Class

Definition

An implementation of IComparer<T> and IEqualityComparer<T> to compare IReadOnlyTypeBase instances by name.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

public sealed class TypeBaseNameComparer : System.Collections.Generic.IComparer<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyTypeBase>, System.Collections.Generic.IEqualityComparer<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyTypeBase>
type TypeBaseNameComparer = class
    interface IComparer<IReadOnlyTypeBase>
    interface IEqualityComparer<IReadOnlyTypeBase>
Public NotInheritable Class TypeBaseNameComparer
Implements IComparer(Of IReadOnlyTypeBase), IEqualityComparer(Of IReadOnlyTypeBase)
Inheritance
TypeBaseNameComparer
Implements

Remarks

See Implementation of database providers and extensions for more information and examples.

Fields

Instance

The singleton instance of the comparer to use.

Methods

Compare(IReadOnlyTypeBase, IReadOnlyTypeBase)

Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.

Equals(IReadOnlyTypeBase, IReadOnlyTypeBase)

Determines whether the specified objects are equal.

GetHashCode(IReadOnlyTypeBase)

Returns a hash code for the specified object.

Applies to