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