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; } }
public Task <List <TEntity> > ToListAsync <TEntity>(ISqlParam sqlParam) where TEntity : class, new() => SpeedTest(sqlParam, async() => await _dbExecutor.ToListAsync <TEntity>(sqlParam));
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))); }