I created a DbContext like so :
public class myDB : DbContext
{
public DbSet Parties { get; set; }
public DbSet B
Try putting this in your Global.asax.cs Application_Start() method.
Database.SetInitializer(null);
To reset the database from scratch on app run make a class like this
//Where myDB is your context
public class EntityBase: DropCreateDatabaseAlways
{
}
Then in your Application_Start() method you can do this
Database.SetInitializer(new EntityBase());