Language

CosmosAutomaticIndexingBuilder<TEntity> クラス

定義

Cosmos コンテナーの自動インデックス作成ポリシーを構成するために使用される汎用 fluent ビルダー。 EntityTypeBuilder<TEntity>のHasAutomaticIndexingによって返されます。

[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>
属性

コンストラクター

Name 説明
CosmosAutomaticIndexingBuilder<TEntity>(EntityTypeBuilder<TEntity>)

新しい CosmosAutomaticIndexingBuilder<TEntity>を作成します。

プロパティ

Name 説明
EntityTypeBuilder

この自動インデックス作成構成をバックアップするために使用されるエンティティ型ビルダー。

(継承元 CosmosAutomaticIndexingBuilder)

メソッド

Name 説明
Except(String)

コンテナーの ExcludedPathsへのパスを追加します。 パスでは、Cosmos indexing-policy 構文 (リーフの /secret/? 、配列サブツリーの /items/[]/* など) を使用する必要があります。 HasAutomaticIndexing(false)を介して自動インデックス作成が無効にされた場合にスローされます。

明示的なインターフェイスの実装

Name 説明
IInfrastructure<IConventionEntityTypeBuilder>.Instance

非表示になっているプロパティの値を取得します。

(継承元 CosmosAutomaticIndexingBuilder)

拡張メソッド

Name 説明
GetInfrastructure<T>(IInfrastructure<T>)

IInfrastructure<T>を使用して非表示になっているプロパティから値を取得します。

このメソッドは、通常、データベース プロバイダー (およびその他の拡張機能) によって使用されます。 通常、アプリケーション コードでは使用されません。

適用対象