/// <summary> /// Build a minimal row from a class (key fields only) /// </summary> public static void BuildMinimalRow(ref DataRow row, CounthistoryBase entity) { row.SetField("coNum", entity.coNum); row.SetField("whNum", entity.whNum); row.SetField("absNum", entity.absNum); row.SetField("binNum", entity.binNum); row.SetField("countType", entity.countType); row.SetField("countDate", entity.countDate); row.SetField("counthistoryRowID", entity.rowID.ToByteArray()); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromCounthistoryBase(ref DataRow row, CounthistoryBase entity) { row.SetField("co_num", entity.coNum); row.SetField("wh_num", entity.whNum); row.SetField("abs_num", entity.absNum); row.SetField("bin_num", entity.binNum); row.SetField("count_type", entity.countType); row.SetField("count_date", entity.countDate); row.SetField("emp_num", entity.empNum); row.SetField("date_time", entity.dateTime); row.SetField("exp_qty", entity.expQty); row.SetField("actual_qty", entity.actualQty); 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_user", entity.transUser); row.SetField("trans_date", entity.transDate); row.SetField("trans_proc", entity.transProc); row.SetField("counthistoryRowID", entity.rowID.ToByteArray()); }