SqlitePropertyBuilderExtensions.ForSqliteHasSrid 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
ForSqliteHasSrid(PropertyBuilder, Int32) |
已过时.
配置属性在面向 SQLite 时映射到的列的 SRID。 |
ForSqliteHasSrid(IConventionPropertyBuilder, Nullable<Int32>, Boolean) |
已过时.
配置属性在面向 SQLite 时映射到的列的 SRID。 |
ForSqliteHasSrid<TProperty>(PropertyBuilder<TProperty>, Int32) |
已过时.
配置属性在面向 SQLite 时映射到的列的 SRID。 |
ForSqliteHasSrid(PropertyBuilder, Int32)
注意
Use HasSrid
配置属性在面向 SQLite 时映射到的列的 SRID。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder ForSqliteHasSrid (this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder propertyBuilder, int srid);
[System.Obsolete("Use HasSrid")]
public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder ForSqliteHasSrid (this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder propertyBuilder, int srid);
static member ForSqliteHasSrid : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder * int -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder
[<System.Obsolete("Use HasSrid")>]
static member ForSqliteHasSrid : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder * int -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder
<Extension()>
Public Function ForSqliteHasSrid (propertyBuilder As PropertyBuilder, srid As Integer) As PropertyBuilder
参数
- propertyBuilder
- PropertyBuilder
要配置的属性的生成器。
- srid
- Int32
SRID。
返回
同一生成器实例,以便可以链接多个调用。
- 属性
适用于
ForSqliteHasSrid(IConventionPropertyBuilder, Nullable<Int32>, Boolean)
注意
Use HasSrid
配置属性在面向 SQLite 时映射到的列的 SRID。
[System.Obsolete("Use HasSrid")]
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder ForSqliteHasSrid (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, int? srid, bool fromDataAnnotation = false);
[<System.Obsolete("Use HasSrid")>]
static member ForSqliteHasSrid : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder * Nullable<int> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder
<Extension()>
Public Function ForSqliteHasSrid (propertyBuilder As IConventionPropertyBuilder, srid As Nullable(Of Integer), Optional fromDataAnnotation As Boolean = false) As IConventionPropertyBuilder
参数
- propertyBuilder
- IConventionPropertyBuilder
要配置的属性的生成器。
- fromDataAnnotation
- Boolean
指示配置是否是使用数据注释指定的。
返回
如果应用了配置,则为同一生成器实例, null
否则为 。
- 属性
适用于
ForSqliteHasSrid<TProperty>(PropertyBuilder<TProperty>, Int32)
注意
Use HasSrid
配置属性在面向 SQLite 时映射到的列的 SRID。
public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> ForSqliteHasSrid<TProperty> (this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> propertyBuilder, int srid);
[System.Obsolete("Use HasSrid")]
public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> ForSqliteHasSrid<TProperty> (this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> propertyBuilder, int srid);
static member ForSqliteHasSrid : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property> * int -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property>
[<System.Obsolete("Use HasSrid")>]
static member ForSqliteHasSrid : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property> * int -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property>
<Extension()>
Public Function ForSqliteHasSrid(Of TProperty) (propertyBuilder As PropertyBuilder(Of TProperty), srid As Integer) As PropertyBuilder(Of TProperty)
类型参数
- TProperty
参数
- propertyBuilder
- PropertyBuilder<TProperty>
要配置的属性的生成器。
- srid
- Int32
SRID。
返回
同一生成器实例,以便可以链接多个调用。
- 属性