Share via


CosmosPropertyExtensions.SetVectorDimensions Method

Definition

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.

dimensions
Nullable<Int32>

The dimensions of the vector stored in 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.

dimensions
Nullable<Int32>

The dimensions of the vector stored in the property.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The configured value.

Applies to