示例#1
0
 public DataService(ApplicationContext context,
                    IPokemonRepository pokemonRepository,
                    ITypeElementRepository typeElementRepository,
                    IPokemonTypeElementRepository pokemonTypeElementRepository,
                    IPokemonWeaknessRepository pokemonWeaknessRepository,
                    IPokemonNextEvolutionRepository pokemonNextEvolutionRepository,
                    IPokemonPrevEvolutionRepository pokemonPrevEvolutionRepository)
 {
     this.context                        = context;
     this.pokemonRepository              = pokemonRepository;
     this.typeElementRepository          = typeElementRepository;
     this.pokemonTypeElementRepository   = pokemonTypeElementRepository;
     this.pokemonWeaknessRepository      = pokemonWeaknessRepository;
     this.pokemonNextEvolutionRepository = pokemonNextEvolutionRepository;
     this.pokemonPrevEvolutionRepository = pokemonPrevEvolutionRepository;
 }
 public PokemonWeaknessRepository(ApplicationContext context, IPokemonRepository pokemonRepository, ITypeElementRepository typeElementRepository) : base(context)
 {
     _pokemonRepository     = pokemonRepository;
     _typeElementRepository = typeElementRepository;
 }