title: Many-To-Many issue (MVC3 + EF4.1)
body: <p>I'm working in MVC 3 and EF 4.1, and I'm at beginners level.</p>
  
  <p>So I've declared these 2 classes:</p>
  
  <pre><code>public class Genre
  {
      [Key]
      public int GenreId { get; set; }
  
      public string Name { get; set; }
  
      public virtual List&lt;Show&gt; Shows { get; set; }
  }
  </code></pre>
  
  <p>and</p>
  
  <pre><code>public class Show
  {
      [Key]
      public int ShowId { get; set; }
  
      public string Title { get; set; }
  
      public virtual int[] GenreIds { get; set; }
  
      public virtual List&lt;Genre&gt; Genres { get; set; }
   }
  </code></pre>
  
  <p>Now I'm trying to display details on particular show and loop&amp;display through genres that show has been tagged with. I have a standard Details view that I'm using, so I'm passing the following to it, from controller:</p>
  
  <pre><code>    public ViewResult Details(int id)
      {
          Show show = db.Shows.Find(id);
          return View(show);
      }
  </code></pre>
  
  <p>And I'm using this Razor loop to show genres:</p>
  
  <pre><code>@foreach (ShowCat.Models.Genre Genre in Model.Genres)
  {
      @Html.Display(Genre.Name)
  }
  </code></pre>
  
  <p>And absolutely nothing happens...</p>
  
  <p>No genres shown...</p>
  
  <p>Help please!</p>