public async Task <int> Count() { //bounder = bounder.Count(); var count = await bounder.Count().FindScalarAsync <int>(); Dispose(); return(count); }
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); }