語言

SqlServerIndexExtensions.SetVectorMetric Method

Definition

Overloads

Name Description
SetVectorMetric(IMutableIndex, String)

Sets the similarity metric for the vector index.

SetVectorMetric(IConventionIndex, String, Boolean)

Sets the similarity metric for the vector index.

SetVectorMetric(IMutableIndex, String)

Source:
SqlServerIndexExtensions.cs

Sets the similarity metric for the vector index.

[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)

Parameters

index
IMutableIndex

The index.

metric
String

The value to set.

Attributes

Applies to

SetVectorMetric(IConventionIndex, String, Boolean)

Source:
SqlServerIndexExtensions.cs

Sets the similarity metric for the vector index.

[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

Parameters

index
IConventionIndex

The index.

metric
String

The value to set.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The configured value.

Attributes

Applies to