Example #1
0
 /// <summary>
 /// Build a minimal row from a class (key fields only)
 /// </summary>
 public static void BuildMinimalRow(ref DataRow row, AbcBase entity)
 {
     row.SetField("coNum", entity.coNum);
     row.SetField("whNum", entity.whNum);
     row.SetField("recalcLast", entity.recalcLast);
     row.SetField("abcRowID", entity.rowID.ToByteArray());
 }
Example #2
0
 /// <summary>
 /// Update a database row from a class
 /// </summary>
 public static void UpdateRowFromAbcBase(ref DataRow row, AbcBase entity)
 {
     row.SetField("co_num", entity.coNum);
     row.SetField("wh_num", entity.whNum);
     row.SetField("a_count_percent", entity.aCountPercent);
     row.SetField("b_count_percent", entity.bCountPercent);
     row.SetField("c_count_percent", entity.cCountPercent);
     row.SetField("d_count_percent", entity.dCountPercent);
     row.SetField("a_count_interval", entity.aCountInterval);
     row.SetField("b_count_interval", entity.bCountInterval);
     row.SetField("c_count_interval", entity.cCountInterval);
     row.SetField("d_count_interval", entity.dCountInterval);
     row.SetField("recalc_interval", entity.recalcInterval);
     row.SetField("recalc_timeframe", entity.recalcTimeframe);
     row.SetField("recalc_last", entity.recalcLast);
     row.SetField("recalc_type", entity.recalcType);
     row.SetField("count_type", entity.countType);
     row.SetField("a_count_loc", entity.aCountLoc);
     row.SetField("b_count_loc", entity.bCountLoc);
     row.SetField("c_count_loc", entity.cCountLoc);
     row.SetField("d_count_loc", entity.dCountLoc);
     row.SetField("custom_data1", entity.customData1);
     row.SetField("custom_data2", entity.customData2);
     row.SetField("custom_data3", entity.customData3);
     row.SetField("custom_data4", entity.customData4);
     row.SetField("custom_data5", entity.customData5);
     row.SetField("trans_sec_time", entity.transSecTime);
     row.SetField("proc_created", entity.procCreated);
     row.SetField("history_interval", entity.historyInterval);
     row.SetField("history_timeframe", entity.historyTimeframe);
     row.SetField("trans_user", entity.transUser);
     row.SetField("trans_date", entity.transDate);
     row.SetField("trans_proc", entity.transProc);
     row.SetField("recalc_pend_date", entity.recalcPendDate);
     row.SetField("recalc_pending", entity.recalcPending);
     row.SetField("exclude_prod_cat", entity.excludeProdCat);
     row.SetField("abcRowID", entity.rowID.ToByteArray());
 }