public async Task <long> CountAsync <T>(Expression <Func <T, bool> > criteria) where T : class { SetConfiguration(typeof(T)); return(await ObjectFactory.CountAsync(criteria, connection : Connection)); }
public async Task <long> CountAsync <T>() where T : class { SetConfiguration(typeof(T)); return(await ObjectFactory.CountAsync <T>(connection : Connection)); }