public static void Seed(this PathfinderContext context) { // Perform database delete and create context.Database.EnsureDeleted(); context.Database.EnsureCreated(); // Perform seed operations AddBloodlines(context); AddCastingTimes(context); AddComponentTypes(context); AddCurrencyUnits(context); AddDomains(context); AddHeroClasses(context); AddPatrons(context); AddReferenceSources(context); AddSavingThrows(context); AddSchools(context); //AddShapes(context); AddSpellDescriptors(context); AddSubschools(context); AddTimeUnits(context); // Save changes and release resources context.SaveChanges(); context.Dispose(); }