title: In Linq to Entities can you convert an IQueryable into a string of SQL?
body: <p>eg.</p>
  
  <pre><code>var result = myObject.Where(x =&gt; x.prop == 5);
  
  string s = result.toSQL();
  </code></pre>
  
  <p>Result:</p>
  
  <p><code>s</code> is <code>"SELECT * FROM [myObjects] WHERE prop = 5"</code></p>