I created a DbContext as follows:
public class myDB : DbContext
{
public DbSet<Party> Parties { get; set; }
public DbSet<Booking> Bookings { get; set; }
}
This led to the creation of my database and the two tables above. Great
Then I decided to add another DbSet to the mix, and I got an error message:
the model supporting the "Party" context has changed since the database was created
I know the fixes for this using modelbuilder.IncludeMetadataInDatabase = false;andDatabase.SetInitializer<ClubmansGuideDB>(null);
1) What is the right way to add my new classes to the context and create them in the database?
2) In my futile attempts to solve this, I deleted the tables myself and tried to restart the application without any success. Then I deleted the entire database and re-started and did not re-create the database. How can I start from scratch - is there a cache somewhere?