static async Task SeedCustomerContext(CustomerContext context, IServiceProvider services) { using (context) { await context.Database.EnsureCreatedAsync(); context.EnsureEnumeration <TenementType>(); await context.SaveChangesAsync(); } }