EntityFramework.Docs icon indicating copy to clipboard operation
EntityFramework.Docs copied to clipboard

Add more spatial examples

Open ajcvickers opened this issue 7 years ago • 3 comments

Originally filed as https://github.com/aspnet/EntityFrameworkCore/issues/1100#issuecomment-491697516 by @zp987


Cant find much documentation on how to use NetTopologySuite with Entity Core. Looking for stuff like Inserting a Poligon suing Entity Core Classes and NetTopologySuite, Inserting a Location Point using Enity Core with NetTopologySuite datatypes/property.

Links to any documentation on CRUD operations using Enitity Core/NetTopologySuite will be great.

Was looking for examples of CRUD operations to geography type columns .

Inserting a new row using (entity core/nettopologysuite) in DB with a Geography column type that will store a Polygon ? or Even inserting a new row in the DB with column (geography) storing location pount?

Have also checked http://www.npgsql.org/efcore/mapping/nts.html not much info there either.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ajcvickers avatar May 14 '19 14:05 ajcvickers

Ditto. I am converting .NET Framework v4.8/EF code with a DbGeography data type to .NET Core/EF Core 2.2, and am getting a "cannot bind 'spatialServices', 'spatialProviderValue' in DbGeography(DbSpatialServices, object spatialProviderValue)" exception when I am trying to use this POCO. Cannot find good examples that use the DbGeography type as a column in the new Core.

Kurtbaby avatar May 24 '19 16:05 Kurtbaby

@Kurtbaby DbGeography and DbGeometry are specific to EF6. They cannot be used with EF Core. The NTS types are essentially replacements for these types.

ajcvickers avatar May 24 '19 17:05 ajcvickers

Duplicate of #1118

ajcvickers avatar Sep 07 '19 21:09 ajcvickers