I try to make an OData-API supporting spatial Queries. I build my model, with a database-first approach (from PostGresql) including a PostGIS - Column. It seems to import it correctly, having this in DBContext:
entity.Property(e => e.Geom)
.HasColumnName("geom")
.HasColumnType("geometry(Point,4326)");
And in the model it is like this:
public Point Geom { get; set; }
So, when making the call the following happens: All the Data are loaded from the Database, but the Geometry has an infinite Loop like this:
And i have no idea why it's happening.
Any Advice, how to fix this and where the problem might lie, would be appreciated.
Kind Regards