Example #1
0
        public async Task <int> Count()
        {
            //bounder = bounder.Count();
            var count = await bounder.Count().FindScalarAsync <int>();

            Dispose();
            return(count);
        }
Example #2
0
        public async Task <int> Count(Expression <Func <T, bool> > expression)
        {
            //bounder = bounder.Count();
            bounder = bounder.Filter(expression);
            var count = await bounder.Count().FindScalarAsync <int>();

            Dispose();
            return(count);
        }