EntryCurrentValueComparer<TProperty>.Compare Method

Definition

Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.

public int Compare (Microsoft.EntityFrameworkCore.Update.IUpdateEntry x, Microsoft.EntityFrameworkCore.Update.IUpdateEntry y);
public int Compare (Microsoft.EntityFrameworkCore.Update.IUpdateEntry? x, Microsoft.EntityFrameworkCore.Update.IUpdateEntry? y);
abstract member Compare : Microsoft.EntityFrameworkCore.Update.IUpdateEntry * Microsoft.EntityFrameworkCore.Update.IUpdateEntry -> int
override this.Compare : Microsoft.EntityFrameworkCore.Update.IUpdateEntry * Microsoft.EntityFrameworkCore.Update.IUpdateEntry -> int
Public Function Compare (x As IUpdateEntry, y As IUpdateEntry) As Integer

Parameters

x
IUpdateEntry

The first object to compare.

y
IUpdateEntry

The second object to compare.

Returns

A negative number if 'x' is less than 'y'; a positive number if 'x' is greater than 'y'; zero otherwise.

Implements

Applies to