語言

CosmosIndexBuilderExtensions.IsVectorIndex 方法

定義

多載

名稱 Description
IsVectorIndex(IndexBuilder, Nullable<VectorIndexType>)

將索引配置為向量索引,並使用給定的向量索引類型,例如「flat」、「diskANN」或「quantizedFlat」。 欲了解更多資訊,請參閱 Azure Cosmos DB 中的向量搜尋 for NoSQL。

IsVectorIndex(IConventionIndexBuilder, Nullable<VectorIndexType>, Boolean)

將索引配置為向量索引,並使用給定的向量索引類型,例如「flat」、「diskANN」或「quantizedFlat」。 欲了解更多資訊,請參閱 Azure Cosmos DB 中的向量搜尋 for NoSQL。

IsVectorIndex(IndexBuilder, Nullable<VectorIndexType>, Boolean)

將索引配置為向量索引,並使用給定的向量索引類型,例如「flat」、「diskANN」或「quantizedFlat」。 欲了解更多資訊,請參閱 Azure Cosmos DB 中的向量搜尋 for NoSQL。

IsVectorIndex<TEntity>(IndexBuilder<TEntity>, Nullable<VectorIndexType>)

將索引配置為向量索引,並使用給定的向量索引類型,例如「flat」、「diskANN」或「quantizedFlat」。 欲了解更多資訊,請參閱 Azure Cosmos DB 中的向量搜尋 for NoSQL。

IsVectorIndex<TEntity>(IndexBuilder<TEntity>, Nullable<VectorIndexType>, Boolean)

將索引配置為向量索引,並以給定的向量索引類型(如「flat」、「diskANN」)或「quantizedFlat」為範本。 欲了解更多資訊,請參閱 Azure Cosmos DB 中的向量搜尋 for NoSQL。

IsVectorIndex(IndexBuilder, Nullable<VectorIndexType>)

來源:
CosmosIndexBuilderExtensions.cs

將索引配置為向量索引,並使用給定的向量索引類型,例如「flat」、「diskANN」或「quantizedFlat」。 欲了解更多資訊,請參閱 Azure Cosmos DB 中的向量搜尋 for NoSQL。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder IsVectorIndex(this Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder indexBuilder, Microsoft.Azure.Cosmos.VectorIndexType? indexType);
static member IsVectorIndex : Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder * Nullable<Microsoft.Azure.Cosmos.VectorIndexType> -> Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder
<Extension()>
Public Function IsVectorIndex (indexBuilder As IndexBuilder, indexType As Nullable(Of VectorIndexType)) As IndexBuilder

參數

indexBuilder
IndexBuilder

正在設定索引的建置者。

indexType
Nullable<VectorIndexType>

要建立或 null 移除向量索引配置的類型。

傳回

一個建構器來進一步配置索引。

備註

更多資訊與範例請參閱「建模實體類型與關係」以及「使用 EF Core 存取 Azure Cosmos DB」。

適用於

IsVectorIndex(IConventionIndexBuilder, Nullable<VectorIndexType>, Boolean)

來源:
CosmosIndexBuilderExtensions.cs
來源:
CosmosIndexBuilderExtensions.cs

將索引配置為向量索引,並使用給定的向量索引類型,例如「flat」、「diskANN」或「quantizedFlat」。 欲了解更多資訊,請參閱 Azure Cosmos DB 中的向量搜尋 for NoSQL。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder? IsVectorIndex(this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder indexBuilder, Microsoft.Azure.Cosmos.VectorIndexType? indexType, bool fromDataAnnotation = false);
static member IsVectorIndex : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder * Nullable<Microsoft.Azure.Cosmos.VectorIndexType> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder
<Extension()>
Public Function IsVectorIndex (indexBuilder As IConventionIndexBuilder, indexType As Nullable(Of VectorIndexType), Optional fromDataAnnotation As Boolean = false) As IConventionIndexBuilder

參數

indexBuilder
IConventionIndexBuilder

正在設定索引的建置者。

indexType
Nullable<VectorIndexType>

要建立或 null 移除向量索引配置的類型。

fromDataAnnotation
Boolean

表示配置是否以資料註解方式指定。

傳回

如果設定是套用,則使用同一個建構者實例, null 否則。

備註

更多資訊與範例請參閱「建模實體類型與關係」以及「使用 EF Core 存取 Azure Cosmos DB」。

適用於

IsVectorIndex(IndexBuilder, Nullable<VectorIndexType>, Boolean)

來源:
CosmosIndexBuilderExtensions.cs

將索引配置為向量索引,並使用給定的向量索引類型,例如「flat」、「diskANN」或「quantizedFlat」。 欲了解更多資訊,請參閱 Azure Cosmos DB 中的向量搜尋 for NoSQL。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder IsVectorIndex(this Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder indexBuilder, Microsoft.Azure.Cosmos.VectorIndexType? indexType, bool vectorIndex = true);
static member IsVectorIndex : Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder * Nullable<Microsoft.Azure.Cosmos.VectorIndexType> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder
<Extension()>
Public Function IsVectorIndex (indexBuilder As IndexBuilder, indexType As Nullable(Of VectorIndexType), Optional vectorIndex As Boolean = true) As IndexBuilder

參數

indexBuilder
IndexBuilder

正在設定索引的建置者。

indexType
Nullable<VectorIndexType>

要建立的向量索引類型。

vectorIndex
Boolean

該值表示索引是否設定為向量索引。

傳回

一個建構器來進一步配置索引。

備註

更多資訊與範例請參閱「建模實體類型與關係」以及「使用 EF Core 存取 Azure Cosmos DB」。

適用於

IsVectorIndex<TEntity>(IndexBuilder<TEntity>, Nullable<VectorIndexType>)

來源:
CosmosIndexBuilderExtensions.cs

將索引配置為向量索引,並使用給定的向量索引類型,例如「flat」、「diskANN」或「quantizedFlat」。 欲了解更多資訊,請參閱 Azure Cosmos DB 中的向量搜尋 for NoSQL。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<TEntity> IsVectorIndex<TEntity>(this Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<TEntity> indexBuilder, Microsoft.Azure.Cosmos.VectorIndexType? indexType);
static member IsVectorIndex : Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<'Entity> * Nullable<Microsoft.Azure.Cosmos.VectorIndexType> -> Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<'Entity>
<Extension()>
Public Function IsVectorIndex(Of TEntity) (indexBuilder As IndexBuilder(Of TEntity), indexType As Nullable(Of VectorIndexType)) As IndexBuilder(Of TEntity)

類型參數

TEntity

參數

indexBuilder
IndexBuilder<TEntity>

正在設定索引的建置者。

indexType
Nullable<VectorIndexType>

要建立或 null 移除向量索引配置的類型。

傳回

IndexBuilder<TEntity>

一個建構器來進一步配置索引。

備註

更多資訊與範例請參閱「建模實體類型與關係」以及「使用 EF Core 存取 Azure Cosmos DB」。

適用於

IsVectorIndex<TEntity>(IndexBuilder<TEntity>, Nullable<VectorIndexType>, Boolean)

來源:
CosmosIndexBuilderExtensions.cs

將索引配置為向量索引,並以給定的向量索引類型(如「flat」、「diskANN」)或「quantizedFlat」為範本。 欲了解更多資訊,請參閱 Azure Cosmos DB 中的向量搜尋 for NoSQL。

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<TEntity> IsVectorIndex<TEntity>(this Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<TEntity> indexBuilder, Microsoft.Azure.Cosmos.VectorIndexType? indexType, bool vectorIndex = true);
static member IsVectorIndex : Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<'Entity> * Nullable<Microsoft.Azure.Cosmos.VectorIndexType> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IndexBuilder<'Entity>
<Extension()>
Public Function IsVectorIndex(Of TEntity) (indexBuilder As IndexBuilder(Of TEntity), indexType As Nullable(Of VectorIndexType), Optional vectorIndex As Boolean = true) As IndexBuilder(Of TEntity)

類型參數

TEntity

參數

indexBuilder
IndexBuilder<TEntity>

正在設定索引的建置者。

indexType
Nullable<VectorIndexType>

要建立的向量索引類型。

vectorIndex
Boolean

該值表示索引是否設定為向量索引。

傳回

IndexBuilder<TEntity>

一個建構器來進一步配置索引。

備註

更多資訊與範例請參閱「建模實體類型與關係」以及「使用 EF Core 存取 Azure Cosmos DB」。

適用於