title: OData Linq to Query String
body: <p>I'm using Web API with OData Query support (nighties) and while I'm aware that the WCF library gives you the ability to query WCF RIA Service URLs what I'm looking for is a lightweight way of generating Odata Query strings sort of like LinqPad does but more generically.</p>
  
  <p>For instance if we know that a service returns a specific type of say "ProductDTO", I want to be able to do something like this:</p>
  
  <pre><code>(from p in ODataSource&lt;ProductDTO&gt;
   where p.Name == "hi"
   select new {p.Model, Name}).ToODataQuery();
  </code></pre>
  
  <p>Which would return the appropriate $filter and $select commands as a string that can be appended to the URL.</p>
  
  <p>Anyone know of any library that can do something like this?</p>