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