public async Task <DataTable> ToTableAsync(ISqlParam sqlParam) { try { return(await _dbExecutor.ToTableAsync(sqlParam)); } catch (Exception ex) { WriteException(ex, sqlParam); throw; } }
public Task <DataTable> ToTableAsync(ISqlParam sqlParam) => SpeedTest(sqlParam, async() => await _dbExecutor.ToTableAsync(sqlParam));
public Task <DataTable> ToTableAsync(ISqlParam sqlParam) { return(SpeedTest("ToTableAsync", sqlParam.Name, CommandType.Text, sqlParam.Sql.ToString(), sqlParam.Param, async() => await _dbExecutor.ToTableAsync(sqlParam))); }