Those types are not available for .NET Core, you can use dotMorten.Microsoft.SqlServer.Types while Microsoft gets them implemented.
Microsoft.Data namespace missing dbGeometry
Allanjb
246
Reputation points
I am developing an application in WPF. Target framework: .Net Core 3.1, x86 platform.
I have installed the Nuget Package: Microsoft.Data.SqlClient.
My db is SqlExpress.
I have a table with a sys.geometry type, (stores a coordinate pair, global coordinates).
I cannot find a reference to the equivalent .Net data type in Microsoft.Data.SqlClient.
I can find a reference in System.Data.Entity.Spatial namespace but this namespace is not present in .NetCore 3.1
Am I missing a package?