Lingua

EntryCurrentValueComparer<TProperty> Classe

Definizione

Implementazione di IComparer<T> e IEqualityComparer<T> per confrontare i valori correnti contenuti nelle IUpdateEntry entità di rilevamento interne.

Questo tipo viene in genere usato dai provider di database (e da altre estensioni). In genere non viene usato nel codice dell'applicazione.

[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)

Parametri di tipo

TProperty

Tipo della proprietà.

Ereditarietà
EntryCurrentValueComparer<TProperty>
Attributi
Implementazioni

Commenti

Per altre informazioni ed esempi, vedere confronto dei valori di EF Core .

Costruttori

Nome Descrizione
EntryCurrentValueComparer<TProperty>(IPropertyBase)

Crea una nuova Microsoft.EntityFrameworkCore.ChangeTracking.Internal.EntryCurrentValueComparer istanza usando un operatore di confronto predefinito per il tipo di proprietà.

Metodi

Nome Descrizione
Compare(IUpdateEntry, IUpdateEntry)

Confronta due oggetti e restituisce un valore che indica se uno è minore, uguale o maggiore dell'altro.

Equals(IUpdateEntry, IUpdateEntry)

Determina se gli oggetti specificati sono uguali.

GetHashCode(IUpdateEntry)

Restituisce un codice hash per l'oggetto specificato.

Si applica a