语言

CosmosPropertyExtensions.SetVectorDimensions 方法

定义

重载

名称 说明
SetVectorDimensions(IMutableProperty, Nullable<Int32>)

设置存储在此属性中的矢量的尺寸。

SetVectorDimensions(IConventionProperty, Nullable<Int32>, Boolean)

设置存储在此属性中的矢量的尺寸。

SetVectorDimensions(IMutableProperty, Nullable<Int32>)

Source:
CosmosPropertyExtensions.cs
Source:
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)

Source:
CosmosPropertyExtensions.cs
Source:
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

指示是否使用数据注释指定了配置。

返回

配置的值。

适用于