title: razor view with anonymous type model class. It is possible?
body: <p>I want to create a view using razor template, but I do not want to write a class for model, because in many views i will have many queries which will be returning diferent models.</p>
  
  <p>For example I have a linq query:</p>
  
  <pre><code>from p in db.Articles.Where(p =&gt; p.user_id == 2)
  select new
  {
      p.article_id, 
      p.title, 
      p.date, 
      p.category,
      /* Additional parameters which arent in Article model */
  };
  </code></pre>
  
  <p>I need to write a View for this query. This query returns a Articles.</p>
  
  <p>Now I dont know how should looks like a model definition.</p>
  
  <p>I tried to use this deffinition:</p>
  
  <pre><code>@model System.Collections.IEnumerable
  </code></pre>
  
  <p>But then I had an erros than fileds doesnt exists in object type:</p>
  
  <p>*CS1061: 'object' does not contain a definition for 'addition_field' and no extension method 'addition_field' accepting a first argument of type 'object' could be found*</p>
  
  <p>This is my model for which I do not want to write a next model. Of course</p>