.net - Query spatial data in OData for EF DB first projects -


i have exists asp.net odata webservice(webapi) projects built on ef db first. support odata query of data geography(dbgeography) datatype, need make geography queryable odata well, can find examples , articles code first while there nothing db/model first. there have experience handle this? lot.

i build 2 examples restier based on web api odata library,

for first example, can query , post geography type, property not part of query option, can refer https://github.com/odata/odatasamples/tree/master/restier/spatialsample more detail.

for second example, https://github.com/odata/odatasamples/tree/master/restier/spatialsample2 , example, can make property part of query option.

the web api odata can support in similar way.

let me know if have more questions.


Comments