Sprache

EntryCurrentValueComparer<TProperty> Klasse

Definition

Eine Implementierung von und IEqualityComparer<T> zum Vergleichen der IComparer<T> aktuellen Werte, die in IUpdateEntry internen Nachverfolgungsentitäten enthalten sind.

Dieser Typ wird in der Regel von Datenbankanbietern (und anderen Erweiterungen) verwendet. Sie wird in der Regel nicht im Anwendungscode verwendet.

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

Typparameter

TProperty

Der Typ der Eigenschaft.

Vererbung
EntryCurrentValueComparer<TProperty>
Attribute
Implementiert

Hinweise

Weitere Informationen und Beispiele finden Sie unter EF Core-Werteabgleiche .

Konstruktoren

Name Beschreibung
EntryCurrentValueComparer<TProperty>(IPropertyBase)

Erstellt eine neue Microsoft.EntityFrameworkCore.ChangeTracking.Internal.EntryCurrentValueComparer Instanz mithilfe eines Standardvergleichs für den Eigenschaftstyp.

Methoden

Name Beschreibung
Compare(IUpdateEntry, IUpdateEntry)

Vergleicht zwei Objekte und gibt einen Wert zurück, der angibt, ob ein Objekt kleiner als, gleich oder größer als der andere ist.

Equals(IUpdateEntry, IUpdateEntry)

Bestimmt, ob die angegebenen Objekte gleich sind.

GetHashCode(IUpdateEntry)

Gibt einen Hashcode für das angegebene Objekt zurück.

Gilt für: