Exemple #1
0
        public void InitializeDB()
        {
            context.Database.EnsureCreated();
            List <Pokemon> pokemons = GetPokemons();

            pokemonRepository.AddPokemons(pokemons);
            typeElementRepository.AddTypeElements(pokemonRepository.GetPokemonsSerialized());
            pokemonTypeElementRepository.AddTypeElements();
            pokemonWeaknessRepository.AddWeakness();
            pokemonNextEvolutionRepository.AddNextEvolution();
            pokemonPrevEvolutionRepository.AddPrevEvolution();
        }