コード例 #1
0
        public static async Task SeedAppLicationData(ApplicationDbContext context)
        {
            await SeedCountries.SeedCountriesDataAsync(context);

            await SeedTeamTypes.SeedTeamTypesDataAsync(context);

            await SeedTeams.SeedTeamsDataAsync(context);

            await SeedBettingTypes.SeedBettingTypesDataAsync(context);

            await SeedFederations.SeedFederationsDataAsync(context);

            await SeedTournaments.SeedTournamentsDataAsync(context);

            await SeedSeasons.SeedSeasonsDataAsync(context);

            await SeedTeams.SeedTeamsDataAsync(context);

            await SeedMatches.SeedMatchesDataAsync(context);
        }
コード例 #2
0
        public TestsModel(ApplicationDbContext dbContext)
        {
            _dbContext = dbContext;

            var seedInstallation = new SeedInstallation(_dbContext);

            seedInstallation.DoTask(null);

            var seedCountries = new SeedCountries(_dbContext);

            seedCountries.DoTask(null);

            var seedPros = new SeedPerformingRightsOrganizations(_dbContext, new SeedCountries(_dbContext));

            seedPros.DoTask(null);

            var seedServices = new SeedServices(_dbContext);

            seedServices.DoTask(null);

            var seedPlatforms = new SeedPlatforms(_dbContext, new ListServices(_dbContext), new AddPlatform(_dbContext));

            seedPlatforms.DoTask(null);
        }