語言

CosmosPropertyExtensions 類別

定義

Cosmos 元資料的屬性擴展方法。

[System.Runtime.CompilerServices.Nullable(0)]
public static class CosmosPropertyExtensions
public static class CosmosPropertyExtensions
[<System.Runtime.CompilerServices.Nullable(0)>]
type CosmosPropertyExtensions = class
type CosmosPropertyExtensions = class
Public Module CosmosPropertyExtensions
繼承
CosmosPropertyExtensions
屬性

備註

更多資訊與範例請參閱「建模實體類型與關係」以及「使用 EF Core 存取 Azure Cosmos DB」。

方法

名稱 Description
GetFullTextSearchLanguage(IReadOnlyProperty)

回傳為此屬性定義的全文搜尋語言。

GetFullTextSearchLanguageConfigurationSource(IConventionProperty)

取得 ConfigurationSource 該屬性全文搜尋語言定義。

GetIsFullTextSearchEnabled(IReadOnlyProperty)

回傳該屬性是否啟用全文搜尋的值。

GetIsFullTextSearchEnabledConfigurationSource(IConventionProperty)

啟用 ConfigurationSource 此物件的全文搜尋。

GetJsonPropertyName(IProperty)

在鎖定 Cosmos 時,回傳該物件所映射的屬性名稱。

GetJsonPropertyName(IReadOnlyProperty)

在鎖定 Cosmos 時,回傳該物件所映射的屬性名稱。

GetJsonPropertyNameConfigurationSource(IConventionProperty)

取得 ConfigurationSource 該物件所映射的物件名稱,當目標為 Cosmos 時。

GetPropertyName(IProperty)

回傳用於鎖定 Cosmos 的物業名稱。

GetPropertyNameConfigurationSource(IConventionProperty)

取得 Cosmos ConfigurationSource 時所用的物業名稱。

GetVectorDimensions(IReadOnlyProperty)

回傳此性質中儲存的向量維度。

GetVectorDimensionsConfigurationSource(IConventionProperty)

得到 , ConfigurationSource 對於儲存在此性質中向量的維度。

GetVectorDistanceFunction(IReadOnlyProperty)

回傳此性質中儲存的向量距離函數。

GetVectorDistanceFunctionConfigurationSource(IConventionProperty)

得到 ConfigurationSource 儲存在此性質中的向量距離函數。

GetVectorType(IReadOnlyProperty)

回傳此性質中儲存的向量定義。

GetVectorTypeConfigurationSource(IConventionProperty)

取得 , ConfigurationSource 對於儲存在此性質中的向量定義。

SetFullTextSearchLanguage(IConventionProperty, String, Boolean)

設定為此屬性定義的全文搜尋語言。

SetFullTextSearchLanguage(IMutableProperty, String)

設定為此屬性定義的全文搜尋語言。

SetIsFullTextSearchEnabled(IConventionProperty, Nullable<Boolean>, Boolean)

啟用本物件的全文搜尋。

SetIsFullTextSearchEnabled(IMutableProperty, Nullable<Boolean>)

啟用本物件的全文搜尋。

SetJsonPropertyName(IConventionProperty, String, Boolean)

設定該物件在鎖定 Cosmos 時所映射的屬性名稱。

SetJsonPropertyName(IMutableProperty, String)

設定該物件在鎖定 Cosmos 時所映射的屬性名稱。

SetPropertyName(IConventionProperty, String, Boolean)

設定用於鎖定 Cosmos 的屬性名稱。

SetPropertyName(IMutableProperty, String)

設定用於鎖定 Cosmos 的屬性名稱。

SetVectorDimensions(IConventionProperty, Nullable<Int32>, Boolean)

設定此性質中儲存向量的維度。

SetVectorDimensions(IMutableProperty, Nullable<Int32>)

設定此性質中儲存向量的維度。

SetVectorDistanceFunction(IConventionProperty, Nullable<DistanceFunction>, Boolean)

設定此性質中向量的距離函數。

SetVectorDistanceFunction(IMutableProperty, Nullable<DistanceFunction>)

設定此性質中向量的距離函數。

SetVectorType(IConventionProperty, CosmosVectorType, Boolean)

設定此性質中儲存向量的定義。

SetVectorType(IMutableProperty, CosmosVectorType)

設定此性質中儲存向量的定義。

適用於