EntryCurrentValueComparer<TProperty> Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
- TProperty
The type of the property.
- Inheritance
-
EntryCurrentValueComparer<TProperty>
- Implements
See EF Core value comparers for more information and examples.
Entry |
Creates a new Microsoft.EntityFrameworkCore.ChangeTracking.Internal.EntryCurrentValueComparer instance using a the default comparer for the property type. |
Compare(IUpdate |
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other. |
Equals(IUpdate |
Determines whether the specified objects are equal. |
Get |
Returns a hash code for the specified object. |
Product | Versions |
---|---|
Entity Framework Core | 5.0, 6.0, 7.0, 8.0, 9.0 |
Entity Framework feedback
Entity Framework is an open source project. Select a link to provide feedback: