コード例 #1
0
        public static void Initialize(IServiceProvider provider)
        {
            provider.GetRequiredService <ShelterDbContext>().Database.Migrate();

            var context = provider.GetRequiredService <ShelterDbContext>();

            GoogleService.GetConnection();
            SeedInitialDataCustomers(context);
            SeedInitialDataEmployees(context);
            SeedInitialDataVolunteers(context);
            SeedInitialDataAnimals(context);
            SeedInitialDataSponsorships(context);
            SeedInitialDataTreatments(context);
            SeedInitialDateTransactions(context);
        }