語言

SqlServerVectorIndexBuilder<TEntity> 類別

定義

提供一個簡單的 API,用於在 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)

類型參數

TEntity

正在設定的實體類型。

繼承
SqlServerVectorIndexBuilder<TEntity>
屬性

備註

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

建構函式

名稱 Description
SqlServerVectorIndexBuilder<TEntity>(IndexBuilder<TEntity>)

提供一個簡單的 API,用於在 SQL Server 上設定向量索引。

屬性

名稱 Description
Metadata

索引正在設定中。

方法

名稱 Description
HasDatabaseName(String)

在針對關聯式資料庫時,設定資料庫中索引的名稱。

HasMetric(String)

在針對 SQL Server 時,配置向量索引的相似度指標。

HasType(String)

在針對 SQL Server 時設定向量索引的類型。

適用於