ForeignKeyComparer.Compare 方法

定义

重载

Compare(IForeignKey, IForeignKey)

比较两个对象并返回一个值,该值指示一个对象小于、等于还是大于另一个对象。

Compare(IReadOnlyForeignKey, IReadOnlyForeignKey)

比较两个对象并返回一个值,该值指示一个对象小于、等于还是大于另一个对象。

Compare(IForeignKey, IForeignKey)

比较两个对象并返回一个值,该值指示一个对象小于、等于还是大于另一个对象。

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

参数

x
IForeignKey

要比较的第一个对象。

y
IForeignKey

要比较的第二个对象。

返回

如果“x”小于“y”,则为负数;如果“x”大于“y”,则为正数;否则为零。

实现

适用于

Compare(IReadOnlyForeignKey, IReadOnlyForeignKey)

比较两个对象并返回一个值,该值指示一个对象小于、等于还是大于另一个对象。

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

参数

x
IReadOnlyForeignKey

要比较的第一个对象。

y
IReadOnlyForeignKey

要比较的第二个对象。

返回

如果“x”小于“y”,则为负数;如果“x”大于“y”,则为正数;否则为零。

实现

适用于