Share via


SqlitePropertyBuilderExtensions.HasSrid Method

Definition

Overloads

HasSrid(PropertyBuilder, Int32)

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

HasSrid(IConventionPropertyBuilder, Nullable<Int32>, Boolean)

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

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

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

HasSrid(PropertyBuilder, Int32)

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

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

Parameters

propertyBuilder
PropertyBuilder

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(IConventionPropertyBuilder, Nullable<Int32>, Boolean)

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

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

Parameters

propertyBuilder
IConventionPropertyBuilder

The builder for the property being configured.

srid
Nullable<Int32>

The SRID.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The same builder instance if the configuration was applied, null otherwise.

Remarks

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

Applies to

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

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

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)

Type Parameters

TProperty

Parameters

propertyBuilder
PropertyBuilder<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