语言

SqlServerIndexExtensions.SetVectorMetric 方法

定义

重载

名称 说明
SetVectorMetric(IMutableIndex, String)

设置矢量索引的相似性指标。

SetVectorMetric(IConventionIndex, String, Boolean)

设置矢量索引的相似性指标。

SetVectorMetric(IMutableIndex, String)

Source:
SqlServerIndexExtensions.cs

设置矢量索引的相似性指标。

[System.Diagnostics.CodeAnalysis.Experimental("EF9105")]
public static void SetVectorMetric(this Microsoft.EntityFrameworkCore.Metadata.IMutableIndex index, string? metric);
[<System.Diagnostics.CodeAnalysis.Experimental("EF9105")>]
static member SetVectorMetric : Microsoft.EntityFrameworkCore.Metadata.IMutableIndex * string -> unit
<Extension()>
Public Sub SetVectorMetric (index As IMutableIndex, metric As String)

参数

index
IMutableIndex

索引。

metric
String

要设置的值。

特性

适用于

SetVectorMetric(IConventionIndex, String, Boolean)

Source:
SqlServerIndexExtensions.cs

设置矢量索引的相似性指标。

[System.Diagnostics.CodeAnalysis.Experimental("EF9105")]
public static string? SetVectorMetric(this Microsoft.EntityFrameworkCore.Metadata.IConventionIndex index, string? metric, bool fromDataAnnotation = false);
[<System.Diagnostics.CodeAnalysis.Experimental("EF9105")>]
static member SetVectorMetric : Microsoft.EntityFrameworkCore.Metadata.IConventionIndex * string * bool -> string
<Extension()>
Public Function SetVectorMetric (index As IConventionIndex, metric As String, Optional fromDataAnnotation As Boolean = false) As String

参数

index
IConventionIndex

索引。

metric
String

要设置的值。

fromDataAnnotation
Boolean

指示是否使用数据注释指定了配置。

返回

配置的值。

特性

适用于