CosmosPropertyExtensions.SetVectorDimensions 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| SetVectorDimensions(IMutableProperty, Nullable<Int32>) |
設定此性質中儲存向量的維度。 |
| SetVectorDimensions(IConventionProperty, Nullable<Int32>, Boolean) |
設定此性質中儲存向量的維度。 |
SetVectorDimensions(IMutableProperty, Nullable<Int32>)
設定此性質中儲存向量的維度。
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
屬性。
適用於
SetVectorDimensions(IConventionProperty, Nullable<Int32>, Boolean)
設定此性質中儲存向量的維度。
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
屬性。
- fromDataAnnotation
- Boolean
表示配置是否以資料註解方式指定。
傳回
設定值。