SqlServerIndexExtensions.SetVectorMetric 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| SetVectorMetric(IMutableIndex, String) |
設定向量指數的相似度度量。 |
| SetVectorMetric(IConventionIndex, String, Boolean) |
設定向量指數的相似度度量。 |
SetVectorMetric(IMutableIndex, String)
設定向量指數的相似度度量。
[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)
設定向量指數的相似度度量。
[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
表示配置是否以資料註解方式指定。
傳回
設定值。
- 屬性