Help translating linq to uri RRS feed

  • Question

  • hi,

    I am developing an application silverlight.

    Here is my query code:

    var query1 = from a in _context.obth_siteSet

                                     where a.obth_adrue1.Contains(criteria)
                                     select a.obth_stationId;

                    DataServiceQuery<obth_station> query = (DataServiceQuery<obth_station>)_context.obth_stationSet.Where(c => c.obth_stationId.Equals(query1));

    And here is the error:

    "Error translating Linq to URI Expression: Can only Specify query options (orderby, where, take, skip) After last navigation"

    How to solve this?


    Wednesday, July 25, 2012 8:29 AM