Geography property in complex type

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
frabiacca
Posts: 2
Joined: Thu 10 Sep 2020 12:38

Geography property in complex type

Post by frabiacca » Thu 10 Sep 2020 12:41

Hi guys,
I created a Devart EF Core model and a Complex type inside (called "Luogo" aka "Location).

Luogo complex type is composed by some properties, like "PosizioneGEO" of type
"Geography".

I update model and db (sql server 2014) correctly but when I run the application (asp.net mvc
core) it appears this error:
InvalidOperationException: The property 'Fattura.ClienteIndirizzo#Luogo.PosizioneGeo' is of type 'Geometry' which is not supported by current database provider. Either change the property CLR type or ignore the property using the '[NotMapped]' attribute or by using 'EntityTypeBuilder.Ignore' in 'OnModelCreating'.
How can I manage this error ?
What's the source of it ?

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Geography property in complex type

Post by Shalex » Fri 11 Sep 2020 16:23

We have reproduced the issue and will notify you when it is fixed.

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Geography property in complex type

Post by Shalex » Mon 21 Sep 2020 13:16

The bug with using spatial types inside complex types in EF Core Model is fixed in v6.9.1083: viewtopic.php?f=32&t=42253.

Post Reply