OData ASP.net WebApi中对geo.distance的支持

时间:2019-04-25 07:03:24

标签: entity-framework asp.net-web-api linq-to-entities odata asp.net-web-api-odata

我遵循以下链接上的步骤,并修改了OData ASP.net WebAPI代码以支持geo.distance方法:

https://medium.com/@nirinchev/dealing-with-spatial-data-in-odata-4e4051434ddb

但是得到错误:

LINQ to Entities does not recognize the method 'System.Nullable`1[System.Double] Distance(Microsoft.Spatial.Geography, Microsoft.Spatial.Geography)' method, and this method cannot be translated into a store expression.

有什么建议吗?

0 个答案:

没有答案