Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Entity Framework Add-Migration is recreating entire database

$
0
0

I am working on a Blazor Web App using SQL as my database. My initial database migration works fine.

However, when I make a change to one of the model classes, even a simple change, and try and add a migration using the Package Manager Console, the migration consists of the entire database creation, not just the incremental change made. Ultimately, the database update fails because it's trying to create tables that are already present.


Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>