SqliteComplexTypePropertyBuilderExtensions.HasSrid Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for