title: There is already an object named AspNetRoles in the database. (entity-framework-core)
body: <p>I have an asp.net core mvc website using entity framework core.</p>
  
  <p>I don't know how it initially happened, but I can't get past the error:
  "There is already an object named AspNetRoles in the database"</p>
  
  <p>I ended up deleted the database, deleting all my migration .cs files and starting from scratch.</p>
  
  <p>I've then tried
  <code>add-migration MyInitialMigration</code></p>
  
  <p>same error</p>
  
  <p>I then deleted the database again, and tried a direct
  <code>update-database</code>
  (without adding a migration)</p>
  
  <p>still the same error</p>
  
  <p>I tried changing the appsettings config string to point to a new, non-existing database.</p>
  
  <p>Still the same error!</p>
  
  <p>Previously on MVC5/EF6 I've encountered this error and have resolved it using the same method as this answer:
  <a href="https://stackoverflow.com/questions/26305273/there-is-already-an-object-named-in-the-database">There is already an object named in the database</a></p>
  
  <p><code>-Add-Migration Initial -IgnoreChanges</code></p>
  
  <p>However -IgnoreChanges is unsupported in EFCore</p>
  
  <p>Or previously on EF6 I've resolved it by adding a migration, then deleting everything in the Up/Down and running an empty migration. This has not worked on EFCore</p>
  
  <p>How can I continue? I've checked the migration table and they're always empty even though it's created the whole database each time. Just doesn't seemed to have logged it in the migrations table</p>