我遵循以下链接上的步骤,并修改了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.
有什么建议吗?