SqliteComplexTypePropertyBuilderExtensions.HasSrid 方法

定义

重载

HasSrid(ComplexTypePropertyBuilder, Int32)

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

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

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

HasSrid(ComplexTypePropertyBuilder, Int32)

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

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

参数

propertyBuilder
ComplexTypePropertyBuilder

要配置的属性的生成器。

srid
Int32

SRID。

返回

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

注解

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

适用于

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

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

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

类型参数

TProperty

参数

propertyBuilder
ComplexTypePropertyBuilder<TProperty>

要配置的属性的生成器。

srid
Int32

SRID。

返回

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

注解

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

适用于