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