ErikEJ / EFCorePowerTools

Entity Framework Core Power Tools - reverse engineering, migrations and model visualization in Visual Studio & CLI
MIT License
2.16k stars 295 forks source link

Geography field brought in as geometry field #321

Closed dyardyGIT closed 4 years ago

dyardyGIT commented 4 years ago

I just ran and my sql geography fields came in as Geometry. I was expecting it to be mapped to geography. Am i missing something or configuration?

I was using today's daily build version 2.3.102.0

"By default, spatial properties are mapped to geography columns in SQL Server. "

ErikEJ commented 4 years ago

@bricelam ?

bricelam commented 4 years ago

NetTopologySuite.Geometries.Geometry is used to represent both SQL Server geometry and geography columns.

ErikEJ commented 4 years ago

So by design!