title: I cannot Model.Count in view page
body: <p>I am responsible to maintain legacy system. The system was developed from Visual Studio 2008 and MVC 1.0. However, the version of visual studio I have is 2010. Now I am faced with new problem that Model object in View cannot use the method from original class. The following is header of view file.</p>
  
  <pre><code>&lt;%@ Page Title="" Language="VB" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage(Of System.Linq.IQueryable(Of MVCApplication.opportunity))"%&gt;
  </code></pre>
  
  <p>In the view part, I have following code.</p>
  
  <pre><code>    &lt;%  If (Model.Count &lt;&gt; 0) Then%&gt;
  </code></pre>
  
  <p>However, when I try to use member 'Count', there is System.MissingMemberException: Public member 'Count' on type 'DataQuery(Of opportunity)' not found.</p>
  
  <p>In debug mode, model contain the same data as the controller. However, it seems the view page cannot access them. Do you have any suggestion how to fix it?</p>