msawczyn / EFDesigner

Entity Framework visual design surface and code-first code generation for EF6, Core and beyond

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue with GeographyPoint: System.Data.Entities.Spatial not found for .Net Core 3.1

ccjx opened this issue · comments

Hi there,

I am trying to use GeographyPoint in one of my entities, however it seems that it is generating with System.Data.Entities.Spatial even when in .Net Core 3.1.x mode.

It should be using Point in NetTopologySuite.Geometries instead. (https://docs.microsoft.com/en-us/ef/core/modeling/spatial)

Is anyone else aware of this issue? Is this fixed in a release post 1.3.0.11?

@msawczyn do let me know if there's anything I can do to help. I really like your extension and it has helped me in my projects a lot.

For now I have worked around the issue by adding a partial class and adding the column in the partial class as a property (with type Point from the Geometries library).