title: IEnumerable works but Type or namespace IQueryable could not be found - MVC 5
body: <p>I'm using MVC5 and trying to make a simple list.  I used the scaffolding, which creates the model as IQueryable in the Controller, and IEnumerable in the View.  I'm trying to change the view to also be IQueryable, but the view gives compile errors on 'Type or namespace 'IQueryable' could not be found (are you missing a using directive or an assembly reference?)'  </p>
  
  <pre><code>&lt;!-- Index.cshtml --&gt;
  @using System.Linq    &lt;!-- flags as 'previously appears in namespace' --&gt;
  @model IEnumerable&lt;MyTableName&gt; &lt;!-- compiles and displays --&gt;
  @model IQueryable&lt;MyTableName&gt; &lt;!-- doesn't compile, throws exception --&gt; 
  </code></pre>
  
  <p>All my projects are 4.5.2.   I am a relative newbie to MVC/EF.  I am referencing System.Core.dll in both my web app and my data project. </p>
  
  <p>When I run, I get the following exception: error CS1061: 'IQueryable' does not contain a definition for 'MyTableName' and no extension method 'MyTableName' accepting a first argument of type 'IQueryable' could be found (are you missing a using directive or an assembly reference?) </p>
  
  <p>I want IQueryable because 1) there's a lot of data and 2) I'll be using Infragistics controls (which are NOT currently in the page).  I want to only get the data I need.  (I'm a total newbie to Infragistics but all Infragistics references are out of the page.)</p>
  
  <p>Any suggestions?  Thanks! </p>