title: How do you store the results of a Query in an Application variable in WebMatrix?
body: <p>I have a .cs file in my App_Code folder that is doing this:</p>
  
  <pre><code>dynamic HomePageFeaturedItems=db.Query("dbo.homepage_featured_items");
  HttpContext.Current.Application["FeaturedItems"]=HomePageFeaturedItems;
  </code></pre>
  
  <p>I'd like to iterate over the results in my .cshtml like this:</p>
  
  <pre><code>@foreach(dynamic item in HttpContext.Current.Application["FeaturedItems"]){
          &lt;li&gt;
              &lt;a href="/auctions/@(item.itemTitle)"&gt;@item.itemTitle&lt;/a&gt;
          &lt;/li&gt;
      }
  </code></pre>
  
  <p>But it obviously doesn't have an enumerator.  I've been trying to wrap my head around how WebMatrix returns results...</p>
  
  <p>Should I be storing it in the application variable in a different way?</p>