Share via


EntityTypeFullNameComparer.Compare Method

Definition

Overloads

Compare(IEntityType, IEntityType)

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

Compare(IReadOnlyEntityType, IReadOnlyEntityType)

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

Compare(IEntityType, IEntityType)

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

Parameters

x
IEntityType

The first object to compare.

y
IEntityType

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(IReadOnlyEntityType, IReadOnlyEntityType)

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

Parameters

x
IReadOnlyEntityType

The first object to compare.

y
IReadOnlyEntityType

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