Page 140
I got a runtime error when search is pressed. Doesn't appear that anyone else has this problem or maybe just unreported.
Error:
base {System.SystemException} = {"The specified method 'Double DistanceBetween(Double, Double, Double, Double)' on the type
'NerdDinner.Models.DinnerRepository' cannot be translated into a LINQ to Entities store expression."}
Traced the problem to Code Snippet 1-99.txt
DinnerRepository.cs
Change this:
[EdmFunction("NerdDinnerModel.Store", "DistanceBetween")]
To this:
Code:
[EdmFunction("NerdDinner.Models.Store", "DistanceBetween")]
Note on Page 24, Figure 1-46 shows Model Namespace: NerdDinner.Models.