コード例 #1
0
 private static CompanyCMCateEntity[] DataTableToEntitys2(DataTable dt)
 {
     if (dt == null)
         return null;
     var results = new CompanyCMCateEntity[dt.Rows.Count];
     for (int i = 0; i < dt.Rows.Count; i++)
     {
         results[i] = CompanyService.DataRowToEntity2(dt.Rows[i]);
     }
     return results;
 }
コード例 #2
0
 private static CompanyCMCateEntity DataRowToEntity2(DataRow row)
 {
     if (row == null)
         return null;
     var result = new CompanyCMCateEntity();
     var entity = DataRowToEntity1(row);
     FengSharp.Tool.Reflect.ClassValueCopier.Copy(result, entity);
     result.HasCate = result.Level_Num > 0;
     return result;
 }