SqlitePropertyBuilderExtensions.HasSrid 方法

定义

重载

HasSrid(PropertyBuilder, Int32)

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

HasSrid(IConventionPropertyBuilder, Nullable<Int32>, Boolean)

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

HasSrid<TProperty>(PropertyBuilder<TProperty>, Int32)

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

HasSrid(PropertyBuilder, Int32)

Source:
SqlitePropertyBuilderExtensions.cs
Source:
SqlitePropertyBuilderExtensions.cs
Source:
SqlitePropertyBuilderExtensions.cs
Source:
SqlitePropertyBuilderExtensions.cs
Source:
SqlitePropertyBuilderExtensions.cs
Source:
SqlitePropertyBuilderExtensions.cs
Source:
SqlitePropertyBuilderExtensions.cs

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

public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder HasSrid (this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder propertyBuilder, int srid);
static member HasSrid : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder * int -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder
<Extension()>
Public Function HasSrid (propertyBuilder As PropertyBuilder, srid As Integer) As PropertyBuilder

参数

propertyBuilder
PropertyBuilder

要配置的属性的生成器。

srid
Int32

SRID。

返回

同一生成器实例,以便可以链接多个调用。

注解

有关详细信息和示例,请参阅空间数据和使用 EF Core 访问 SQLite 数据库

适用于

HasSrid(IConventionPropertyBuilder, Nullable<Int32>, Boolean)

Source:
SqlitePropertyBuilderExtensions.cs
Source:
SqlitePropertyBuilderExtensions.cs
Source:
SqlitePropertyBuilderExtensions.cs
Source:
SqlitePropertyBuilderExtensions.cs
Source:
SqlitePropertyBuilderExtensions.cs
Source:
SqlitePropertyBuilderExtensions.cs
Source:
SqlitePropertyBuilderExtensions.cs

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

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder HasSrid (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, int? srid, bool fromDataAnnotation = false);
public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder? HasSrid (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder propertyBuilder, int? srid, bool fromDataAnnotation = false);
static member HasSrid : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder * Nullable<int> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder
<Extension()>
Public Function HasSrid (propertyBuilder As IConventionPropertyBuilder, srid As Nullable(Of Integer), Optional fromDataAnnotation As Boolean = false) As IConventionPropertyBuilder

参数

propertyBuilder
IConventionPropertyBuilder

要配置的属性的生成器。

srid
Nullable<Int32>

SRID。

fromDataAnnotation
Boolean

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

返回

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

注解

有关详细信息和示例,请参阅空间数据和使用 EF Core 访问 SQLite 数据库

适用于

HasSrid<TProperty>(PropertyBuilder<TProperty>, Int32)

Source:
SqlitePropertyBuilderExtensions.cs
Source:
SqlitePropertyBuilderExtensions.cs
Source:
SqlitePropertyBuilderExtensions.cs
Source:
SqlitePropertyBuilderExtensions.cs
Source:
SqlitePropertyBuilderExtensions.cs
Source:
SqlitePropertyBuilderExtensions.cs
Source:
SqlitePropertyBuilderExtensions.cs

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

public static Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> HasSrid<TProperty> (this Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<TProperty> propertyBuilder, int srid);
static member HasSrid : Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property> * int -> Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder<'Property>
<Extension()>
Public Function HasSrid(Of TProperty) (propertyBuilder As PropertyBuilder(Of TProperty), srid As Integer) As PropertyBuilder(Of TProperty)

类型参数

TProperty

参数

propertyBuilder
PropertyBuilder<TProperty>

要配置的属性的生成器。

srid
Int32

SRID。

返回

同一生成器实例,以便可以链接多个调用。

注解

有关详细信息和示例,请参阅空间数据和使用 EF Core 访问 SQLite 数据库

适用于