IQueryable does not contain ToList()
<p>My view's model is an <code>IEnumerable&lt;SomeModel&gt;</code> so in my controller I do this:</p>

<pre><code>[HttpGet]
public PartialViewResult show() {
    IQueryable query= from data in entity.dbCtxt
        select data;
    return PartialView("show", query.ToList());
}
</code></pre>

<p>Turns out <code>IQueryable</code> does not contain the definition of <code>ToList()</code>...</p>

<pre><code>public interface IQueryable : IEnumerable{
     Type ElementType { get; }
     Expression Expression { get; }
     IQueryProvider Provider { get; }
}
</code></pre>

<p>How do I cast <code>IQueryable</code> into a list?</p>