Deserializing DbGeometry with Newtonsoft.Json

后端 未结 3 601
挽巷
挽巷 2021-02-13 19:22

I\'m building a SPA using Angular,Breeze and Web API 2 following the approach as outlined by John Papa in his latest PluralSight course.

Everything works well and I can

3条回答
  •  难免孤独
    2021-02-13 20:05

    I don't see why not. On the line with (DbGeometryWellKnownValue):

    "$type": "System.Data.Entity.Spatial.DbGeometryWellKnownValue, EntityFramework",
    

    should this be (DbGeometry.WellKnownValue)?

      "$type": "System.Data.Entity.Spatial.DbGeometry.WellKnownValue, EntityFramework",
    

提交回复
热议问题