ForeignKeyComparer.Compare Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
- Source:
- ForeignKeyComparer.cs
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
The first object to compare.
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)
- Source:
- ForeignKeyComparer.cs
- Source:
- ForeignKeyComparer.cs
- Source:
- ForeignKeyComparer.cs
- Source:
- ForeignKeyComparer.cs
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
The first object to compare.
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
Entity Framework