CosmosPropertyExtensions.SetVectorDimensions 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| 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
属性。
适用于
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
属性。
- fromDataAnnotation
- Boolean
指示是否使用数据注释指定了配置。
返回
配置的值。