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.

C#
public sealed class EntryCurrentValueComparer<TProperty> : System.Collections.Generic.IComparer<Microsoft.EntityFrameworkCore.Update.IUpdateEntry>, System.Collections.Generic.IEqualityComparer<Microsoft.EntityFrameworkCore.Update.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

Product Versions
Entity Framework Core 5.0, 6.0, 7.0, 8.0, 9.0