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