0
以下是完整信息: 將LINQ to Entities獲取方法'Double GetProProimityInMiles(double,double)'方法不能識別,並且此方法不能轉換爲商店表達式。獲取LINQ to Entities無法識別'Double GetProximityInMiles(double,double)'方法...
下面的代碼:
public Maid[] GetMaidsByZipCode(string Zip, int Distance)
{
MaidsListEntities Context = new MaidsListEntities();
return Context.Maids.Where(m => m.Zip == Zip && Distance <= GeoLocationProvider.Instance.GetProximityInMiles(Zip, m.Zip)).ToArray();
}