Share via


SqliteComplexTypePropertyBuilderExtensions.HasSrid Method

Definition

Overloads

HasSrid(ComplexTypePropertyBuilder, Int32)

Configures the SRID of the column that the property maps to when targeting SQLite.

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

Configures the SRID of the column that the property maps to when targeting SQLite.

HasSrid(ComplexTypePropertyBuilder, Int32)

Configures the SRID of the column that the property maps to when targeting SQLite.

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

Parameters

propertyBuilder
ComplexTypePropertyBuilder

The builder for the property being configured.

srid
Int32

The SRID.

Returns

The same builder instance so that multiple calls can be chained.

Remarks

See Spatial data, and Accessing SQLite databases with EF Core for more information and examples.

Applies to

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

Configures the SRID of the column that the property maps to when targeting SQLite.

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)

Type Parameters

TProperty

Parameters

propertyBuilder
ComplexTypePropertyBuilder<TProperty>

The builder for the property being configured.

srid
Int32

The SRID.

Returns

The same builder instance so that multiple calls can be chained.

Remarks

See Spatial data, and Accessing SQLite databases with EF Core for more information and examples.

Applies to