SqlServerVectorIndexBuilder<TEntity> Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides a simple API for configuring a vector index on SQL Server.
[System.Diagnostics.CodeAnalysis.Experimental("EF9105")]
[System.Runtime.CompilerServices.Nullable(0)]
public class SqlServerVectorIndexBuilder<TEntity>
[<System.Diagnostics.CodeAnalysis.Experimental("EF9105")>]
[<System.Runtime.CompilerServices.Nullable(0)>]
type SqlServerVectorIndexBuilder<'Entity> = class
Public Class SqlServerVectorIndexBuilder(Of TEntity)
Type Parameters
- TEntity
The entity type being configured.
- Inheritance
-
SqlServerVectorIndexBuilder<TEntity>
- Attributes
Remarks
See Modeling entity types and relationships, and Accessing SQL Server and Azure SQL databases with EF Core for more information and examples.
Constructors
| Name | Description |
|---|---|
| SqlServerVectorIndexBuilder<TEntity>(IndexBuilder<TEntity>) |
Provides a simple API for configuring a vector index on SQL Server. |
Properties
| Name | Description |
|---|---|
| Metadata |
The index being configured. |
Methods
| Name | Description |
|---|---|
| HasDatabaseName(String) |
Configures the name of the index in the database when targeting a relational database. |
| HasMetric(String) |
Configures the similarity metric for the vector index when targeting SQL Server. |
| HasType(String) |
Configures the type of the vector index when targeting SQL Server. |