语言

SqlitePropertyBuilderExtensions.ForSqliteHasDimension 方法

定义

注意

Use HasGeometricDimension

配置属性在面向 SQLite 时映射到的列的维度。

[System.Obsolete("Use HasGeometricDimension")]
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder ForSqliteHasDimension(this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, string dimension, bool fromDataAnnotation = false);
[<System.Obsolete("Use HasGeometricDimension")>]
static member ForSqliteHasDimension : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder * string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder
<Extension()>
Public Function ForSqliteHasDimension (propertyBuilder As IConventionPropertyBuilder, dimension As String, Optional fromDataAnnotation As Boolean = false) As IConventionPropertyBuilder

参数

propertyBuilder
IConventionPropertyBuilder

要配置的属性的生成器。

dimension
String

维度。

fromDataAnnotation
Boolean

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

返回

如果应用了配置,则为同一生成器实例, null 否则为同一个生成器实例。

特性

适用于