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.Oracle.Entity tag to the configuration tag:
<Devart.Data.Oracle.Entity xmlns="http://devart.com/schemas/Devart.Data.Oracle.Entity/1.0"> <SpatialOptions SpatialServiceType="NetTopologySuite" /> </Devart.Data.Oracle.Entity>
Note: If you need to set multiple Entity Framework provider options for dotConnect for Oracle, don't add multiple Devart.Data.Oracle.Entity tags. Specify all settings in one Devart.Data.Oracle.Entity tag.
Default SRID | Choosing Spatial Service | Tolerance | Area and Distance Units | Spatials Comparison | Oracle Spatial Engine | Spatial Type Name Representation | DbGeometry/DbGeography Support in Spatial Services