Język

CosmosAutomaticIndexingBuilder<TEntity> Klasa

Definicja

Ogólny konstruktor płynny używany do konfigurowania zasad automatycznego indeksowania kontenera Cosmos. Zwrócone przez HasAutomaticIndexing w dniu EntityTypeBuilder<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

Parametry typu

TEntity

Konfigurowany typ jednostki.

Dziedziczenie
CosmosAutomaticIndexingBuilder<TEntity>
Atrybuty

Konstruktory

Nazwisko Opis
CosmosAutomaticIndexingBuilder<TEntity>(EntityTypeBuilder<TEntity>)

Tworzy nowy CosmosAutomaticIndexingBuilder<TEntity>element .

Właściwości

Nazwisko Opis
EntityTypeBuilder

Konstruktor typów jednostek używany do tworzenia kopii zapasowej tej konfiguracji automatycznego indeksowania.

(Odziedziczone po CosmosAutomaticIndexingBuilder)

Metody

Nazwisko Opis
Except(String)

Dodaje ścieżkę do kontenera ExcludedPaths. Ścieżka musi używać składni indeksowania-zasad usługi Cosmos (np /secret/? . dla liścia dla /items/[]/* drzewa podrzędnego tablicy). Zgłasza, czy automatyczne indeksowanie zostało wyłączone za pośrednictwem polecenia HasAutomaticIndexing(false).

Jawne implementacje interfejsu

Nazwisko Opis
IInfrastructure<IConventionEntityTypeBuilder>.Instance

Pobiera wartość ukrytej właściwości.

(Odziedziczone po CosmosAutomaticIndexingBuilder)

Metody rozszerzania

Nazwisko Opis
GetInfrastructure<T>(IInfrastructure<T>)

Pobiera wartość z właściwości ukrytej przy użyciu polecenia IInfrastructure<T>.

Ta metoda jest zwykle używana przez dostawców baz danych (i innych rozszerzeń). Zwykle nie jest używany w kodzie aplikacji.

Dotyczy