语言

CosmosAutomaticIndexingBuilder<TEntity> 类

定义

用于配置 Cosmos 容器的自动索引策略的通用 Fluent 生成器。 返回者。HasAutomaticIndexingEntityTypeBuilder<TEntity>

[System.Runtime.CompilerServices.Nullable(0)]
public class CosmosAutomaticIndexingBuilder<TEntity> : Microsoft.EntityFrameworkCore.Metadata.Builders.CosmosAutomaticIndexingBuilder where TEntity : class
[<System.Runtime.CompilerServices.Nullable(0)>]
type CosmosAutomaticIndexingBuilder<'Entity (requires 'Entity : null)> = class
    inherit CosmosAutomaticIndexingBuilder
Public Class CosmosAutomaticIndexingBuilder(Of TEntity)
Inherits CosmosAutomaticIndexingBuilder

类型参数

TEntity

正在配置的实体类型。

继承
CosmosAutomaticIndexingBuilder<TEntity>
特性

构造函数

名称 说明
CosmosAutomaticIndexingBuilder<TEntity>(EntityTypeBuilder<TEntity>)

创建新的 CosmosAutomaticIndexingBuilder<TEntity>。

属性

名称 说明
EntityTypeBuilder

用于支持此自动索引配置的实体类型生成器。

(继承自 CosmosAutomaticIndexingBuilder)

方法

名称 说明
Except(String)

向容器 ExcludedPaths添加路径。 路径必须使用 Cosmos 索引策略语法(例如 /secret/? ,对于叶, /items/[]/* 对于数组子树)。 如果通过 HasAutomaticIndexing(false) 禁用自动索引,则引发

显式接口实现

名称 说明
IInfrastructure<IConventionEntityTypeBuilder>.Instance

获取隐藏的属性的值。

(继承自 CosmosAutomaticIndexingBuilder)

扩展方法

名称 说明
GetInfrastructure<T>(IInfrastructure<T>)

从正在使用的隐藏 IInfrastructure<T>属性中获取值。

此方法通常由数据库提供程序(和其他扩展)使用。 它通常不用于应用程序代码。

适用于