Language

EntryCurrentValueComparer<TProperty> クラス

定義

内部追跡エンティティに含まれる現在の値を比較するためのIComparer<T>とIEqualityComparer<T>IUpdateEntry実装。

この型は、通常、データベース プロバイダー (およびその他の拡張機能) によって使用されます。 通常、アプリケーション コードでは使用されません。

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

型パラメーター

TProperty

プロパティの型。

継承
EntryCurrentValueComparer<TProperty>
属性
実装

注釈

詳細と例については、 EF Core の値の比較子 を参照してください。

コンストラクター

Name 説明
EntryCurrentValueComparer<TProperty>(IPropertyBase)

プロパティ型の既定の比較子を使用して、新しい Microsoft.EntityFrameworkCore.ChangeTracking.Internal.EntryCurrentValueComparer インスタンスを作成します。

メソッド

Name 説明
Compare(IUpdateEntry, IUpdateEntry)

2 つのオブジェクトを比較し、一方が他方より小さいか、等しいか、または大きいかを示す値を返します。

Equals(IUpdateEntry, IUpdateEntry)

指定したオブジェクトが等しいかどうかを判断します。

GetHashCode(IUpdateEntry)

指定したオブジェクトのハッシュ コードを返します。

適用対象