public static ProductCateEntity DataRowToCateEntity(DataRow dataRow)
 {
     if (dataRow == null)
         return null;
     var result = new ProductCateEntity();
     var entity = DataRowToEntity(dataRow);
     FengSharp.Tool.Reflect.ClassValueCopier.Copy(result, entity);
     result.HasCate = result.Level_Num > 0;
     return result;
 }
 public static ProductCateEntity[] DataTableToCateEntity(DataTable dt)
 {
     if (dt == null)
         return null;
     var results = new ProductCateEntity[dt.Rows.Count];
     for (int i = 0; i < dt.Rows.Count; i++)
     {
         results[i] = ProductService.DataRowToCateEntity(dt.Rows[i]);
     }
     return results;
 }