title: MVC3 Binding model (some fields) to  the view
body: <p>Binding model to the view.</p>
  
  <p>my model Person has {Id,Title,Address...etc)</p>
  
  <p>In my controller I want to retrieve some fields 
  e.g:</p>
  
  <pre><code> var model = from p in db.Person where p.jobtype == 1 
               select new Person { Title = p.Title, Address = p.Address};
   return View(model);
  </code></pre>
  
  <p>also tried to to use anonymous type and it doesn't work: </p>
  
  <pre><code> var model = from p in db.Person where p.jobtype == 1 
               select new { p.Title, p.Address};
   return View(model);
  </code></pre>
  
  <p>In my view:</p>
  
  <pre><code> @model IEnumerable&lt;Demo.Models.Person&gt;
   @foreach (var item in Model) {
   &lt;div&gt;@item.Title&lt;/div&gt;}  &gt;FAILS
  </code></pre>
  
  <p>If I retrieve full object then it works, how do I retrieve some fields using anonymous type or\and using my model.... plz provide the correct syntax. Thanks</p>