I am trying to create a query in my domain service (VS 2010 Silverlight Business Application) that returns the results from inspection readings that came out as a specific value
The problem is precisely because you've called ToList()
. You've declared that you're returning IQueryable
, and List
doesn't implement IQueryable
.
Options (pick one):
ToList
callIEnumerable
, IList
or possibly List
Call AsQueryable()
after ToList()
:
... as before ...
.ToList().AsQueryable();
Note that you don't need the type argument in the ToList
call - it's the same one that the compiler would infer anyway.