EntityTypeFullNameComparer Class

Definition

An implementation of IComparer<T> and IEqualityComparer<T> to compare IReadOnlyEntityType instances by the full unique name.

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

public sealed class EntityTypeFullNameComparer : System.Collections.Generic.IComparer<Microsoft.EntityFrameworkCore.Metadata.IEntityType>, System.Collections.Generic.IEqualityComparer<Microsoft.EntityFrameworkCore.Metadata.IEntityType>
public sealed class EntityTypeFullNameComparer : System.Collections.Generic.IComparer<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType>, System.Collections.Generic.IEqualityComparer<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType>
type EntityTypeFullNameComparer = class
    interface IComparer<IEntityType>
    interface IEqualityComparer<IEntityType>
type EntityTypeFullNameComparer = class
    interface IComparer<IReadOnlyEntityType>
    interface IEqualityComparer<IReadOnlyEntityType>
Public NotInheritable Class EntityTypeFullNameComparer
Implements IComparer(Of IEntityType), IEqualityComparer(Of IEntityType)
Public NotInheritable Class EntityTypeFullNameComparer
Implements IComparer(Of IReadOnlyEntityType), IEqualityComparer(Of IReadOnlyEntityType)
Inheritance
EntityTypeFullNameComparer
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(IEntityType, IEntityType)

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

Compare(IReadOnlyEntityType, IReadOnlyEntityType)

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

Equals(IEntityType, IEntityType)

Determines whether the specified objects are equal.

Equals(IReadOnlyEntityType, IReadOnlyEntityType)

Determines whether the specified objects are equal.

GetHashCode(IEntityType)

Returns a hash code for the specified object.

GetHashCode(IReadOnlyEntityType)

Returns a hash code for the specified object.

Applies to