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