共用方式為


TypeBaseNameComparer 類別

定義

IEqualityComparer<T> 的實作 IComparer<T> ,以依名稱比較 IReadOnlyTypeBase 實例。

此類型通常由資料庫提供者 (和其他延伸模組) 使用。 它通常不會用於應用程式程式碼。

public sealed class TypeBaseNameComparer : System.Collections.Generic.IComparer<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyTypeBase>, System.Collections.Generic.IEqualityComparer<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyTypeBase>
type TypeBaseNameComparer = class
    interface IComparer<IReadOnlyTypeBase>
    interface IEqualityComparer<IReadOnlyTypeBase>
Public NotInheritable Class TypeBaseNameComparer
Implements IComparer(Of IReadOnlyTypeBase), IEqualityComparer(Of IReadOnlyTypeBase)
繼承
TypeBaseNameComparer
實作

備註

如需詳細資訊 和範例,請參閱資料庫提供者和延伸模組的實作

欄位

Instance

要使用的比較子單一實例。

方法

Compare(IReadOnlyTypeBase, IReadOnlyTypeBase)

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

Equals(IReadOnlyTypeBase, IReadOnlyTypeBase)

判斷指定的物件是否相等。

GetHashCode(IReadOnlyTypeBase)

傳回指定物件的雜湊碼。

適用於