I'm experimenting with entity framework core and stumbled upon an error I've never seen before and can't figure out how to fix it. I'm using .net Core Web API 2.0 with EntityFramework Core 2.00-preview2-final
Here is a simple example that triggers the error.
(concept: simple endpoint to get a user from database)
Error: System.PlatformNotSupportedException: Type Udt is not supported on this platform.
Any suggestions?
The problem is that I'm using geography in my database but I use it as a string in my model, because entity framework core doesn't support spatial data yet...
Any way to keep this cake tasty without getting rid of geography, cause it's an important feature?
Edit : See my answer for current solution