EntryCurrentValueComparer<TProperty> Class

Definition

An implementation of IComparer<T> and IEqualityComparer<T> to compare current values contained in IUpdateEntry internal tracking entities.

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

public sealed class EntryCurrentValueComparer<TProperty> : System.Collections.Generic.IComparer<Microsoft.EntityFrameworkCore.Update.IUpdateEntry>, System.Collections.Generic.IEqualityComparer<Microsoft.EntityFrameworkCore.Update.IUpdateEntry>
type EntryCurrentValueComparer<'Property> = class
    interface IComparer<IUpdateEntry>
    interface IEqualityComparer<IUpdateEntry>
Public NotInheritable Class EntryCurrentValueComparer(Of TProperty)
Implements IComparer(Of IUpdateEntry), IEqualityComparer(Of IUpdateEntry)

Type Parameters

TProperty

The type of the property.

Inheritance
EntryCurrentValueComparer<TProperty>
Implements

Remarks

See EF Core value comparers for more information and examples.

Constructors

EntryCurrentValueComparer<TProperty>(IPropertyBase)

Creates a new Microsoft.EntityFrameworkCore.ChangeTracking.Internal.EntryCurrentValueComparer instance using a the default comparer for the property type.

Methods

Compare(IUpdateEntry, IUpdateEntry)

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

Equals(IUpdateEntry, IUpdateEntry)

Determines whether the specified objects are equal.

GetHashCode(IUpdateEntry)

Returns a hash code for the specified object.

Applies to