I have this:
1 GMSEntities gmsSvc = new GMSEntities(new Uri("/GMSDataService.svc", UriKind.Relative));
2 var query = from c in gmsSvc.GateDefs
3 where c.Gate.Trim().Equals("") == false
4 orderby c.ViewOrder ascending
5 select c;
6 DataServiceQuery<GateDefs> gateDefsQuery = (DataServiceQuery<GateDefs>)q ...
Go to the complete details ...