table already exists exception when migrate DB using Entity Framework Core and SQLite
Do not use both EnsureCreated
and Migrate
, Only Migrate enough to create and migrate the DB
using (var db = new DBContext())
{
//db.Database.EnsureCreated(); Don't use
db.Database.Migrate();
}