語言

CosmosPropertyExtensions.SetVectorDimensions 方法

定義

多載

名稱 Description
SetVectorDimensions(IMutableProperty, Nullable<Int32>)

設定此性質中儲存向量的維度。

SetVectorDimensions(IConventionProperty, Nullable<Int32>, Boolean)

設定此性質中儲存向量的維度。

SetVectorDimensions(IMutableProperty, Nullable<Int32>)

來源:
CosmosPropertyExtensions.cs
來源:
CosmosPropertyExtensions.cs

設定此性質中儲存向量的維度。

public static void SetVectorDimensions(this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, int? dimensions);
static member SetVectorDimensions : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * Nullable<int> -> unit
<Extension()>
Public Sub SetVectorDimensions (property As IMutableProperty, dimensions As Nullable(Of Integer))

參數

property
IMutableProperty

屬性。

dimensions
Nullable<Int32>

儲存在性質中的向量維度。

適用於

SetVectorDimensions(IConventionProperty, Nullable<Int32>, Boolean)

來源:
CosmosPropertyExtensions.cs
來源:
CosmosPropertyExtensions.cs

設定此性質中儲存向量的維度。

public static int? SetVectorDimensions(this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, int? dimensions, bool fromDataAnnotation = false);
static member SetVectorDimensions : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * Nullable<int> * bool -> Nullable<int>
<Extension()>
Public Function SetVectorDimensions (property As IConventionProperty, dimensions As Nullable(Of Integer), Optional fromDataAnnotation As Boolean = false) As Nullable(Of Integer)

參數

property
IConventionProperty

屬性。

dimensions
Nullable<Int32>

儲存在性質中的向量維度。

fromDataAnnotation
Boolean

表示配置是否以資料註解方式指定。

傳回

設定值。

適用於