語言

SqlServerVectorIndexBuilder Class

Definition

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
[<System.Diagnostics.CodeAnalysis.Experimental("EF9105")>]
[<System.Runtime.CompilerServices.Nullable(0)>]
type SqlServerVectorIndexBuilder = class
Public Class SqlServerVectorIndexBuilder
Inheritance
SqlServerVectorIndexBuilder
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(IndexBuilder)

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.

Applies to