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