title: Entity Framework Core: Type Udt is not supported on this platform. (Spatial Data - Geography)
body: <p>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</p>
  
  <p>Here is a simple example that triggers the error.</p>
  
  <p>(concept: simple endpoint to get a user from database)</p>
  
  <p>Error:
  System.PlatformNotSupportedException: Type Udt is not supported on this platform.</p>
  
  <p>Any suggestions?</p>
  
  <p><strong>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...</strong></p>
  
  <p>Any way to keep this cake tasty without getting rid of geography, cause it's an important feature?</p>
  
  <p>Edit : See my answer for current solution</p>