public static void DeleteMany() { var bookRepo = new BooksRepository(); var books = bookRepo.GetAll() .Where(b => b.Title.StartsWith("Var")).ToList(); bookRepo.DeleteRange(books); bookRepo.Save(); }