I'm migrating a .Net Framework 4.7.1 application from MS SQL Server to PostgreSQL, and for that I'm using DotConnect.
Libraries added are (version 8.0.0.0):
- Devart.Data
- Devart.Data.PostgreSQL
- Devart.Data.PostgreSQL.EF6
- Devart.Data.PostgreSQL.Spatials.EF6
My DbContext have this configuration:
Code: Select all
[DbConfigurationType(typeof(Devart.Data.PostgreSql.Entity.PgSqlEntityProviderServicesConfiguration))]
public class Context : DbContext
{
static Context()
{
var config = PgSqlEntityProviderConfig.Instance;
config.SpatialOptions.SpatialServiceType = SpatialServiceType.NetTopologySuiteSigned;
config.SpatialOptions.GeographyDistanceUnit = DistanceMeasurementUnit.Kilometer;
config.SpatialOptions.GeographyAreaUnit = AreaMeasurementUnit.SquareKilometer;
config.Workarounds.DisableQuoting = true;
}
I've setup everything and now I'm getting this error when querying:
Method not found: 'GeoAPI.Geometries.IGeometry NetTopologySuite.IO.WKTReader.Read(System.String)'.