共用方式為


EntityTypeFullNameComparer.Compare 方法

定義

多載

Compare(IEntityType, IEntityType)

比較兩個物件並傳回值,指出其中一個物件為小於、等於或大於另一個物件。

Compare(IReadOnlyEntityType, IReadOnlyEntityType)

比較兩個物件並傳回值,指出其中一個物件為小於、等於或大於另一個物件。

Compare(IEntityType, IEntityType)

比較兩個物件並傳回值,指出其中一個物件為小於、等於或大於另一個物件。

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

參數

x
IEntityType

要比較的第一個物件。

y
IEntityType

要比較的第二個物件。

傳回

如果 'x' 小於 'y',則為負數;如果 'x' 大於 'y',則為正數;否則為零。

實作

適用於

Compare(IReadOnlyEntityType, IReadOnlyEntityType)

比較兩個物件並傳回值,指出其中一個物件為小於、等於或大於另一個物件。

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

參數

x
IReadOnlyEntityType

要比較的第一個物件。

y
IReadOnlyEntityType

要比較的第二個物件。

傳回

如果 'x' 小於 'y',則為負數;如果 'x' 大於 'y',則為正數;否則為零。

實作

適用於