OData + EF. Writing geography types
问题 I have an Odata service which exposes an EF6 code first model. Some of these entities include DbGeography fields. I can GET these field, despite the DbGeography fields having quite an ugly serialized format, but I cannot figure out how to POST or PUT an entity to the service. The DbGeography type seems to struggle with deserialization. Can anyone provide an example or link for how to do this? 回答1: I've had this problem too. Its a bug apparently. Either two choices here - drop down to EF5 for