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; } }
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))); }