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