CosmosAutomaticIndexingBuilder<TEntity> 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
一個通用流暢式建構器,用於配置 Cosmos 容器的自動索引政策。 於 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
正在設定的實體類型。
- 繼承
- 屬性
建構函式
| 名稱 | Description |
|---|---|
| CosmosAutomaticIndexingBuilder<TEntity>(EntityTypeBuilder<TEntity>) |
屬性
| 名稱 | Description |
|---|---|
| EntityTypeBuilder |
用於支持此自動索引配置的實體類型建構器。 (繼承來源 CosmosAutomaticIndexingBuilder) |
方法
| 名稱 | Description |
|---|---|
| Except(String) |
會為容器 |
明確介面實作
| 名稱 | Description |
|---|---|
| IInfrastructure<IConventionEntityTypeBuilder>.Instance |
取得隱藏財產的價值。 (繼承來源 CosmosAutomaticIndexingBuilder) |
擴充方法
| 名稱 | Description |
|---|---|
| GetInfrastructure<T>(IInfrastructure<T>) |
從一個被隱藏的屬性中取得價值 IInfrastructure<T>。 此方法通常由資料庫提供者(及其他擴充)使用。 它通常不被用於應用程式程式碼中。 |