title: Where to find translated Linq to Entity query to Sql
body: <p>I want to get the translated Linq query programmatically and do some stuff with that Sql syntax.</p>
  
  <p>Suppose this is my code:</p>
  
  <pre><code>public class MyApiController:ApiController
  {
     public IQueryable&lt;object&gt; Get()
     {
        var objs=Context.Objexts.Where(m=&gt;m.Id&gt;10);
        return objs;
     }
  }
  </code></pre>
  
  <p>I want to find and get the Sql syntax like:</p>
  
  <pre><code>SELECT * FROM dbo.Objexts where Id &gt; 10
  </code></pre>