예제 #1
0
        static async Task SeedCustomerContext(CustomerContext context, IServiceProvider services)
        {
            using (context)
            {
                await context.Database.EnsureCreatedAsync();

                context.EnsureEnumeration <TenementType>();
                await context.SaveChangesAsync();
            }
        }