Exemple #1
0
 public void DeleteAllPokemon()
 {
     using (var context = new PokeContext())
     {
         var allPokemon = context.Pokemon;
         context.Pokemon.RemoveRange(allPokemon);
         context.SaveChanges();
     }
 }
Exemple #2
0
 public void DeleteAllMoves()
 {
     using (var context = new PokeContext())
     {
         var allMoves = context.Moves;
         context.Moves.RemoveRange(allMoves);
         context.SaveChanges();
     }
 }