This topic is applicable to Entity Framework v5 and v6. For Entity Framework Core, see Spatial Data Support for EF Core.
The spatial service used is specified in the SpatialServiceType property.
Setting this property is enough to use spatials. You can omit setting other options related to spatials.
Alternatively, you may specify the spatial service to use in the project config file. For this, you need to update or add the configSections element like it is described in the Entity Framework Provider Configuration section and then add the following Devart.Data.MySql.Entity tag to the configuration tag:
<Devart.Data.MySql.Entity xmlns="http://devart.com/schemas/Devart.Data.MySql.Entity/1.0"> <SpatialOptions SpatialServiceType="NetTopologySuite" /> </Devart.Data.MySql.Entity>
Note: If you need to set multiple Entity Framework provider options for dotConnect for MySQL, don't add multiple Devart.Data.MySql.Entity tags. Specify all settings in one Devart.Data.MySql.Entity tag.
Default SRID | Choosing Spatial Service | Area and Distance Units | DbGeometry/DbGeography Support in Spatial Services