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