title: How to bind DbContext from Model to View
body: <p>I'm new to MVC and have this simple Problem (I think).
  I have a DbContext </p>
  
  <pre><code>public class UsersContext : DbContext
  {
      public UsersContext() : base("Share_DB") {}
      public DbSet&lt;ItemDB&gt; Items { get; set; }
  }
  </code></pre>
  
  <p>which contains a list of items with id and Title: </p>
  
  <pre><code>[Table("Items")]
  public class ItemDB
  {
      [Key]
      [DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]
      public int Id { get; set; }
      public string Title { get; set; }
  }
  </code></pre>
  
  <p>and I want to bind a list with all the itemes in the Database table to the model. However I can't figure out how to do that.</p>
  
  <p>In the View (cshtml file) I guess I have define which model I have to use ( <code>@model XXX.Models.ItemModel</code> ) then Display it with something like:</p>
  
  <pre><code>&lt;ul&gt;
  @foreach (XXX.Models.ItemModel.ItemDB item in @Items)
  {
      &lt;li&gt;@item.Title&lt;/li&gt;
  }
  &lt;/ul&gt;
  </code></pre>
  
  <p>However it can't find the <code>@Items</code> property is not found. How do I write this?</p>