語言

IReadOnlyIndex 介面

定義

代表一組屬性的索引。

public interface IReadOnlyIndex : Microsoft.EntityFrameworkCore.Infrastructure.IReadOnlyAnnotatable
type IReadOnlyIndex = interface
    interface IReadOnlyAnnotatable
Public Interface IReadOnlyIndex
Implements IReadOnlyAnnotatable
衍生
實作

備註

更多資訊與範例請參閱 建模實體類型與關係 。

屬性

名稱 Description
CollectionIndices

取得遍歷的複數集合索引,以達到每個索引屬性。

DeclaringEntityType

取得索引所定義的實體類型。 這可能與定義在 上的類型 Properties 不同,當索引被定義為繼承階層中的導出型別時(因為屬性可能定義在基底型態上)。

IsDescending

一組值,指示每個對應的索引欄是否採用遞減排序順序。

IsUnique

會獲得一個值,表示指派給索引屬性的值是否唯一。

Item[String]

取得帶有名稱的註解值,若不存在則回 null 傳。

(繼承來源 IReadOnlyAnnotatable)
Name

會知道這個索引的名字。

Properties

取得該索引所定義的屬性。

方法

名稱 Description
AnnotationsToDebugString(Int32)

取得物件上所有宣告註解的除錯字串。

(繼承來源 IReadOnlyAnnotatable)
DisplayName()

取得給定 IReadOnlyIndex的友善顯示名稱,若定義為 則回傳 it Name ,若為未命名索引則回傳其字串表示 Properties 。

FindAnnotation(String)

取得帶有名字的註解,若不存在則回 null 傳。

(繼承來源 IReadOnlyAnnotatable)
GetAnnotation(String)

取得帶有名稱的註解,若不存在則拋出。

(繼承來源 IReadOnlyAnnotatable)
GetAnnotations()

取得目前物件的所有註解。

(繼承來源 IReadOnlyAnnotatable)
ToDebugString(MetadataDebugStringOptions, Int32)

建立給定元資料的可讀表示法。

警告:請勿依賴回傳字串的格式。 它僅設計用於除錯,且可能在不同版本間任意變動。

擴充方法

名稱 Description
FindSharedObjectRootIndex(IReadOnlyIndex, StoreObjectIdentifier)

找到第一個 IIndex 映射到共享資料表類物件中相同索引的檔案。

此方法通常由資料庫提供者(及其他擴充)使用。 它通常不被用於應用程式程式碼中。

GetDatabaseName(IReadOnlyIndex, StoreObjectIdentifier)

回傳資料庫中索引的名稱。

GetDatabaseName(IReadOnlyIndex)

回傳資料庫中索引的名稱。

GetDataCompression(IReadOnlyIndex, StoreObjectIdentifier)

回傳索引所使用的資料壓縮。

GetDataCompression(IReadOnlyIndex)

回傳索引所使用的資料壓縮。

GetDefaultDatabaseName(IReadOnlyIndex, StoreObjectIdentifier)

回傳該索引的預設名稱。

GetDefaultDatabaseName(IReadOnlyIndex)

回傳該索引的預設名稱。

GetFillFactor(IReadOnlyIndex, StoreObjectIdentifier)

回傳索引所使用的填充因子。

GetFillFactor(IReadOnlyIndex)

回傳索引所使用的填充因子。

GetFilter(IReadOnlyIndex, StoreObjectIdentifier)

回傳索引過濾器表達式。

GetFilter(IReadOnlyIndex)

回傳索引過濾器表達式。

GetFullTextCatalog(IReadOnlyIndex, StoreObjectIdentifier)

回傳全文索引的全文目錄名稱。

GetFullTextCatalog(IReadOnlyIndex)

回傳全文索引的全文目錄名稱。

GetFullTextChangeTracking(IReadOnlyIndex, StoreObjectIdentifier)

回傳全文索引的變更追蹤模式。

GetFullTextChangeTracking(IReadOnlyIndex)

回傳全文索引的變更追蹤模式。

GetFullTextKeyIndex(IReadOnlyIndex, StoreObjectIdentifier)

回傳全文索引的 KEY INDEX 名稱。

GetFullTextKeyIndex(IReadOnlyIndex)

回傳全文索引的 KEY INDEX 名稱。

GetFullTextLanguage(IReadOnlyIndex, String)

回傳全文索引中特定屬性的全文語言。

GetFullTextLanguages(IReadOnlyIndex)

回傳所有已設定為全文索引的全文語言。

GetIncludeProperties(IReadOnlyIndex, StoreObjectIdentifier)

報稅表中包含物業名稱,或 null 未指定者。

GetIncludeProperties(IReadOnlyIndex)

報稅表中包含物業名稱,或 null 未指定者。

GetSortInTempDb(IReadOnlyIndex, StoreObjectIdentifier)

回傳一個值,表示該索引是否在 tempdb 中被排序。

GetSortInTempDb(IReadOnlyIndex)

回傳一個值,表示該索引是否在 tempdb 中被排序。

GetVectorIndexType(IReadOnlyIndex, StoreObjectIdentifier)

回傳向量索引的類型。

GetVectorIndexType(IReadOnlyIndex)

回傳可使用的向量索引類型,例如「flat」、「diskANN」或「quantizedFlat」。 欲了解更多資訊,請參閱 Azure Cosmos DB 中的向量搜尋 for NoSQL。

GetVectorIndexType(IReadOnlyIndex)

回傳向量索引的類型。

GetVectorMetric(IReadOnlyIndex, StoreObjectIdentifier)

回傳向量指數的相似度指標。

GetVectorMetric(IReadOnlyIndex)

回傳向量指數的相似度指標。

IsClustered(IReadOnlyIndex, StoreObjectIdentifier)

回傳一個值,表示索引是否為叢集。

IsClustered(IReadOnlyIndex)

回傳一個值,表示索引是否為叢集。

IsCreatedOnline(IReadOnlyIndex, StoreObjectIdentifier)

回傳一個值,表示該索引是否在線。

IsCreatedOnline(IReadOnlyIndex)

回傳一個值,表示該索引是否在線。

IsFullTextIndex(IReadOnlyIndex)

回傳索引是否設定為全文搜尋的值。 欲了解更多資訊,請參閱 Azure Cosmos DB 中的全文搜尋 NoSQL。

IsFullTextIndex(IReadOnlyIndex)

回傳索引是否為全文索引。

IsVectorIndex(IReadOnlyIndex)

回傳索引是否為向量索引。

適用於