//protected void Save() => _context.SaveChanges(); public int Count(Func <T, bool> predicate) { return(_context.Set <T>().Where(predicate).Count()); }