EntityTypeFullNameComparer 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
和 IEqualityComparer<T> 的 IComparer<T> 實作,以完整唯一名稱比較 IReadOnlyEntityType 實例。
此類型通常是由資料庫提供者使用, (和其他延伸模組) 。 它通常不會用於應用程式程式碼中。
public sealed class EntityTypeFullNameComparer : System.Collections.Generic.IComparer<Microsoft.EntityFrameworkCore.Metadata.IEntityType>, System.Collections.Generic.IEqualityComparer<Microsoft.EntityFrameworkCore.Metadata.IEntityType>
public sealed class EntityTypeFullNameComparer : System.Collections.Generic.IComparer<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType>, System.Collections.Generic.IEqualityComparer<Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType>
type EntityTypeFullNameComparer = class
interface IComparer<IEntityType>
interface IEqualityComparer<IEntityType>
type EntityTypeFullNameComparer = class
interface IComparer<IReadOnlyEntityType>
interface IEqualityComparer<IReadOnlyEntityType>
Public NotInheritable Class EntityTypeFullNameComparer
Implements IComparer(Of IEntityType), IEqualityComparer(Of IEntityType)
Public NotInheritable Class EntityTypeFullNameComparer
Implements IComparer(Of IReadOnlyEntityType), IEqualityComparer(Of IReadOnlyEntityType)
- 繼承
-
EntityTypeFullNameComparer
- 實作
備註
如需詳細資訊和範例,請參閱 資料庫提供者和延伸模組的實作 。
欄位
Instance |
要使用的比較子單一實例。 |
方法
Compare(IEntityType, IEntityType) |
比較兩個物件並傳回值,指出其中一個物件為小於、等於或大於另一個物件。 |
Compare(IReadOnlyEntityType, IReadOnlyEntityType) |
比較兩個物件並傳回值,指出其中一個物件為小於、等於或大於另一個物件。 |
Equals(IEntityType, IEntityType) |
判斷指定的物件是否相等。 |
Equals(IReadOnlyEntityType, IReadOnlyEntityType) |
判斷指定的物件是否相等。 |
GetHashCode(IEntityType) |
傳回指定物件的雜湊碼。 |
GetHashCode(IReadOnlyEntityType) |
傳回指定物件的雜湊碼。 |
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應