Ejemplo n.º 1
0
        public int RemoveList(Expression <Func <T, bool> > where)
        {
            var temp = _context.Set <T>().Where(where);

            foreach (var item in temp)
            {
                _context.Remove <T>(item);
            }
            return(_context.SaveChanges());
        }