共用方式為


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',則為正數;否則為零。

實作

適用於