title: subsonic - convert an linq query to sql query / DataReader
body: <p>Let's say I have a the following query:</p>
  
  <pre><code>int x = 5;
  var result = from p in db.products
               where p.CategoryId == x
               select p;
  
  int count = result.Count();
  List&lt;product&gt; products = result.ToList();
  </code></pre>
  
  <p>That's what I have now. But aditionally I need to have a DataReader from result:</p>
  
  <pre><code>// that's what I need:
  var reader = ConvertSubSonicLinqQueryToDataReader(result);
  </code></pre>
  
  <p>How can I convert the linq statement to something I can work with?
  A DataReader or a DbCommand or even plain sql with a list of paramters.</p>
  
  <p>I know SubSonic can do that (since it translates the query to plain sql anyway) but I haven't found anything in the public accessible methods yet.</p>
  
  <p>Any suggestions?</p>