title: EF 6 code-first Cannot find the object "dbo.AspNetUserRoles" because it does not exist or you do not have permissions
body: <p>I'm trying to migrate tables and data to my existing database using a code-first approach.<br>
  When I run the Add-Migration [somename] I end up with the following exception: </p>
  
  <pre><code>Cannot find the object "dbo.AspNetUserRoles" because it does not exist or you do not have permissions.
  </code></pre>
  
  <p>Now here's the deal, my tables are named like aspnet_Users, aspnet_UserRoles etc. As you can see my generated migration-file capitalizes the table name. I've tried to rename those manually, unfortunately without any progress. I can't seem to figure out what causes this. </p>
  
  <p>My Database entity looks like this: </p>
  
  <pre><code>public partial class MyDBContext : IdentityDbContext&lt;ApplicationUser&gt;
  {
      public FunkaDbContext()
          : base("name=MyDBContext", throwIfV1Schema: false)
      {
          Database.SetInitializer&lt;MyDBContext&gt;(new DropCreateDatabaseIfModelChanges&lt;MyDBContext&gt;());
      }
  
      public virtual DbSet&lt;educationSignup&gt; EducationSignups { get; set; }
      public virtual DbSet&lt;ParticipantsInformation&gt; ParticipantsInformations { get; set; }
      public virtual DbSet&lt;PaymentInformation&gt; PaymentInformations { get; set; }
  
      protected override void OnModelCreating(DbModelBuilder modelBuilder)
      {
          base.OnModelCreating(modelBuilder);
  
          modelBuilder.Conventions.Remove&lt;PluralizingTableNameConvention&gt;();
  
          modelBuilder.Entity&lt;educationSignup&gt;()
              .HasMany(e =&gt; e.participantsInformations)
              .WithRequired(e =&gt; e.educationSignup)
              .HasForeignKey(e =&gt; e.SignupId)
              .WillCascadeOnDelete(false);
  
          modelBuilder.Entity&lt;educationSignup&gt;()
              .HasMany(e =&gt; e.paymentInformations)
              .WithRequired(e =&gt; e.educationSignup)
              .HasForeignKey(e =&gt; e.SignupId)
              .WillCascadeOnDelete(false);
  
          modelBuilder.Entity&lt;IdentityUser&gt;().HasKey&lt;string&gt;(u =&gt; u.Id);
          modelBuilder.Entity&lt;IdentityRole&gt;().HasKey&lt;string&gt;(r =&gt; r.Id);
          modelBuilder.Entity&lt;IdentityUserRole&gt;().HasKey(r =&gt; new { r.RoleId, r.UserId });
      }
  
      public static MyDbContext Create()
      {
          return new MyDbContext();
      }
  }
  </code></pre>