Example #1
0
        public async Task <int> Count(Expression <Func <T, bool> > predicate)
        {
            var result = await _context.Set <T>().Where(predicate).ToListAsync();

            return(result.Count());
        }