Share via


CosmosEntityTypeExtensions 类

定义

Cosmos 元数据的实体类型扩展方法。

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

注解

有关详细信息和示例,请参阅为实体类型和关系建模和使用 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>)

在容器范围内设置预配的吞吐量。

适用于