ForeignKeyComparer.Compare Method

Definition

Overloads

Compare(IForeignKey, IForeignKey)

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

Compare(IReadOnlyForeignKey, IReadOnlyForeignKey)

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

Compare(IForeignKey, IForeignKey)

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.Metadata.IForeignKey x, Microsoft.EntityFrameworkCore.Metadata.IForeignKey y);
abstract member Compare : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Metadata.IForeignKey -> int
override this.Compare : Microsoft.EntityFrameworkCore.Metadata.IForeignKey * Microsoft.EntityFrameworkCore.Metadata.IForeignKey -> int
Public Function Compare (x As IForeignKey, y As IForeignKey) As Integer

Parameters

x
IForeignKey

The first object to compare.

y
IForeignKey

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

Compare(IReadOnlyForeignKey, IReadOnlyForeignKey)

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.Metadata.IReadOnlyForeignKey? x, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey? y);
abstract member Compare : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey -> int
override this.Compare : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey * Microsoft.EntityFrameworkCore.Metadata.IReadOnlyForeignKey -> int
Public Function Compare (x As IReadOnlyForeignKey, y As IReadOnlyForeignKey) As Integer

Parameters

x
IReadOnlyForeignKey

The first object to compare.

y
IReadOnlyForeignKey

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