public async Task <int> ExecuteAsync(ISqlParam sqlParam)
 {
     try { return(await _dbExecutor.ExecuteAsync(sqlParam)); }
     catch (Exception ex)
     {
         WriteException(ex, sqlParam);
         throw;
     }
 }
Ejemplo n.º 2
0
 public Task <int> ExecuteAsync(ISqlParam sqlParam) => SpeedTest(sqlParam, async() => await _dbExecutor.ExecuteAsync(sqlParam));
 public Task <int> ExecuteAsync(ISqlParam sqlParam)
 {
     return(SpeedTest("ExecuteAsync", sqlParam.Name, CommandType.Text, sqlParam.Sql.ToString(), sqlParam.Param, async() => await _dbExecutor.ExecuteAsync(sqlParam)));
 }