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

            Dispose();
            return(count);
        }
示例#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);
        }