SqlServerIndexExtensions.SetVectorMetric Method
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.
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