generate sql query from entity framework
<p>I am trying to generate sql query using .ToTraceString() in entity framework 3,5;
but I am getting the following error</p>

<p><strong>Cannot convert type 'System.Collections.Generic.List  to 'System.Data.Objects.ObjectQuery'</strong></p>

<p>I have the following code 
I need to generate sql query</p>

<blockquote>
<pre><code>                  customers= ent.Customer
                      .Include("UserType")
                      .Include("User")
                      .Where(c =&gt; c.Enabled == true)
                  .ToList&lt;Customer&gt;();
</code></pre>
</blockquote>

<p>How to get sql query generated by entity framework. I don't have sql profiler.</p>

<p>Many thanks</p>
