CosmosPropertyExtensions.SetVectorDimensions 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 |
|---|---|
| SetVectorDimensions(IMutableProperty, Nullable<Int32>) |
Sets the dimensions of the vector stored in this property. |
| SetVectorDimensions(IConventionProperty, Nullable<Int32>, Boolean) |
Sets the dimensions of the vector stored in this property. |
SetVectorDimensions(IMutableProperty, Nullable<Int32>)
- Source:
- CosmosPropertyExtensions.cs
Sets the dimensions of the vector stored in this property.
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))
Parameters
- property
- IMutableProperty
The property.
Applies to
SetVectorDimensions(IConventionProperty, Nullable<Int32>, Boolean)
- Source:
- CosmosPropertyExtensions.cs
Sets the dimensions of the vector stored in this property.
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)
Parameters
- property
- IConventionProperty
The property.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
The configured value.