title: Error Key Already Exists in Table when scaffolding controller vs2015
body: <p>I am trying to follow the Music Store Example in Professional MVC 4 using VS2015. I am having issues scaffolding the music store controller. Everytime I try to create the controller a Error window pops up and the only information in it is: "There was an error running the selected code generator:'Key already exists in table.'"</p>
  
  <p>I have searched around for this specific errors but most of the scaffolding error solutions seem to be about errors in the web.config, yet nothing has even changed in my web.config, it is the default one created when the new project was created.</p>
  
  <p>I have tried creating another MVC project and coding the models again yet I still receive the error.</p>
  
  <p>I am using Microsoft Visual Studio Enterprise 2015 version 14.0.247200 Update 1 if that helps.</p>
  
  <p>The Classes that I have created in the Models folder are as follows and are exactly as they are in the book:</p>
  
  <pre><code>public class Album
  {
      public virtual int AlbumId { get; set; }
      public virtual int GenreId { get; set; }
      public virtual int ArtistId { get; set; }
      public virtual string Title { get; set; }
      public virtual decimal Price { get; set; }
      public virtual string AlbumArtUrl { get; set; }
      public virtual Genre Genre { get; set; }
      public virtual Artist Artist { get; set; }
  }
  
  public class Artist
  {
      public virtual int ArtistId { get; set; }
      public virtual string Name { get; set; }
      public virtual string Description { get; set; }
  }
  
  public class Genre
  {
      public virtual int GenreId { get; set; }
      public virtual string Name { get; set; }
      public virtual string Description { get; set; }
      public virtual List&lt;Album&gt; Albums { get; set; }
  }
  </code></pre>
  
  <p>Thanks for your help</p>