System.Spatial, Error when performing add-migration


Hi All, hoping someone can help.

when adding a ‘GeogrpahyPoint’ column to a table, we get the following error when trying to perform the db migration.

The entity type ‘CoordinateSystem’ requires a primary key to be defined.

The only place I can find CoordinateSystem defined is within the System.Spatial libraries, as we have not added it as a reference.

We are using .NetCore targeting v1.1, the backend DB is MS SQL 2014, this is in an ASP.Net Application.

Any help would be greatly appreciated.

.NET Foundation Website | Blog | Projects | Code of Conduct