Ejemplo n.º 1
0
        public static void DeleteMany()
        {
            var bookRepo = new BooksRepository();
            var books    = bookRepo.GetAll()
                           .Where(b => b.Title.StartsWith("Var")).ToList();

            bookRepo.DeleteRange(books);
            bookRepo.Save();
        }