CosmosEntityTypeExtensions 類別

定義

Cosmos 中繼資料的實體類型擴充方法。

public static class CosmosEntityTypeExtensions
type CosmosEntityTypeExtensions = class
Public Module CosmosEntityTypeExtensions
繼承
CosmosEntityTypeExtensions

備註

如需詳細資訊和範例,請參閱使用 EF Core 建立實體類型和關聯性的模型化,以及 使用 EF Core 存取 Azure Cosmos DB

方法

GetAnalyticalStoreTimeToLive(IReadOnlyEntityType)

傳回容器範圍內的分析存放區存留時間,以秒為單位。

GetAnalyticalStoreTimeToLiveConfigurationSource(IConventionEntityType)

ConfigurationSource取得容器範圍中分析存放區存留時間的 ,以秒為單位。

GetContainer(IEntityType)

傳回實體類型所對應的容器名稱。

GetContainer(IReadOnlyEntityType)

傳回實體類型所對應的容器名稱。

GetContainerConfigurationSource(IConventionEntityType)

ConfigurationSource取得實體類型所對應之容器的 。

GetContainingPropertyName(IEntityType)

傳回實體類型所對應之父屬性的名稱。

GetContainingPropertyName(IReadOnlyEntityType)

傳回實體類型所對應之父屬性的名稱。

GetContainingPropertyNameConfigurationSource(IConventionEntityType)

ConfigurationSource取得實體類型所對應之父屬性的 。

GetDefaultTimeToLive(IReadOnlyEntityType)

傳回容器範圍中以秒為單位的預設存留時間。

GetDefaultTimeToLiveConfigurationSource(IConventionEntityType)

ConfigurationSource取得容器範圍的預設存留時間,以秒為單位。

GetETagProperty(IConventionEntityType)

取得對應至 Cosmos ETag 之這個實體上的 屬性,如果存在的話。

GetETagProperty(IEntityType)

取得對應至 Cosmos ETag 之這個實體上的 屬性,如果存在的話。

GetETagProperty(IMutableEntityType)

取得對應至 Cosmos ETag 之這個實體上的 屬性,如果存在的話。

GetETagProperty(IReadOnlyEntityType)

取得對應至 Cosmos ETag 之這個實體上的 屬性,如果存在的話。

GetETagPropertyName(IEntityType)

傳回用來儲存 etag 的屬性名稱。

GetETagPropertyName(IReadOnlyEntityType)

傳回用來儲存 ETag 的屬性名稱。

GetETagPropertyNameConfigurationSource(IConventionEntityType)

ConfigurationSource取得用來儲存 etag 之屬性的 。

GetPartitionKeyProperty(IConventionEntityType)

傳回用來儲存資料分割索引鍵的屬性。

GetPartitionKeyProperty(IEntityType)

傳回用來儲存資料分割索引鍵的屬性。

GetPartitionKeyProperty(IMutableEntityType)

傳回用來儲存資料分割索引鍵的屬性。

GetPartitionKeyProperty(IReadOnlyEntityType)

傳回用來儲存資料分割索引鍵的屬性。

GetPartitionKeyPropertyName(IEntityType)

傳回用來儲存資料分割索引鍵的屬性名稱。

GetPartitionKeyPropertyName(IReadOnlyEntityType)

傳回用來儲存資料分割索引鍵的屬性名稱。

GetPartitionKeyPropertyNameConfigurationSource(IConventionEntityType)

ConfigurationSource取得用來儲存資料分割索引鍵之屬性的 。

GetThroughput(IReadOnlyEntityType)

傳回容器範圍中布建的輸送量。

GetThroughputConfigurationSource(IConventionEntityType)

ConfigurationSource取得容器範圍中布建輸送量的 。

SetAnalyticalStoreTimeToLive(IConventionEntityType, Nullable<Int32>, Boolean)

在容器範圍設定分析存放區存留時間,以秒為單位。

SetAnalyticalStoreTimeToLive(IMutableEntityType, Nullable<Int32>)

在容器範圍設定分析存放區存留時間,以秒為單位。

SetContainer(IConventionEntityType, String, Boolean)

設定實體類型所對應的容器名稱。

SetContainer(IMutableEntityType, String)

設定實體類型所對應的容器名稱。

SetContainingPropertyName(IConventionEntityType, String, Boolean)

設定實體類型所對應的父屬性名稱。

SetContainingPropertyName(IMutableEntityType, String)

設定實體類型所對應的父屬性名稱。

SetDefaultTimeToLive(IConventionEntityType, Nullable<Int32>, Boolean)

設定容器範圍的預設存留時間,以秒為單位。

SetDefaultTimeToLive(IMutableEntityType, Nullable<Int32>)

設定容器範圍的預設存留時間,以秒為單位。

SetETagPropertyName(IConventionEntityType, String, Boolean)

設定用來儲存 ETag 的屬性名稱。

SetETagPropertyName(IMutableEntityType, String)

設定用來儲存 ETag 索引鍵的屬性名稱。

SetPartitionKeyPropertyName(IConventionEntityType, String, Boolean)

設定用來儲存資料分割索引鍵的屬性名稱。

SetPartitionKeyPropertyName(IMutableEntityType, String)

設定用來儲存資料分割索引鍵索引鍵的屬性名稱。

SetThroughput(IConventionEntityType, Nullable<Int32>, Nullable<Boolean>, Boolean)

在容器範圍設定布建的輸送量。

SetThroughput(IMutableEntityType, Nullable<Int32>, Nullable<Boolean>)

在容器範圍設定布建的輸送量。

適用於