コード例 #1
0
 public async Task <List <TEntity> > ToListAsync <TEntity>(ISqlParam sqlParam) where TEntity : class, new()
 {
     try { return(await _dbExecutor.ToListAsync <TEntity>(sqlParam)); }
     catch (Exception ex)
     {
         WriteException(ex, sqlParam);
         throw;
     }
 }
コード例 #2
0
 public Task <List <TEntity> > ToListAsync <TEntity>(ISqlParam sqlParam) where TEntity : class, new() => SpeedTest(sqlParam, async() => await _dbExecutor.ToListAsync <TEntity>(sqlParam));
コード例 #3
0
 public Task <List <TEntity> > ToListAsync <TEntity>(ISqlParam sqlParam) where TEntity : class, new()
 {
     return(SpeedTest("ToListAsync", sqlParam.Name, CommandType.Text, sqlParam.Sql.ToString(), sqlParam.Param, async() => await _dbExecutor.ToListAsync <TEntity>(sqlParam)));
 }