msawczyn / EFDesigner

Entity Framework visual design surface and code-first code generation for EF6, Core and beyond
MIT License
363 stars 60 forks source link

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

Closed ccjx closed 4 years ago

ccjx commented 4 years ago

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?

ccjx commented 4 years ago

@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).