/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromPalletdetBase(ref DataRow row, PalletdetBase entity) { row.SetField("pallet_num", entity.palletNum); row.SetField("pick_id", entity.pickId); row.SetField("abs_num", entity.absNum); row.SetField("lot", entity.lot); row.SetField("ns_comment", entity.nsComment); row.SetField("quantity", entity.quantity); row.SetField("date_time", entity.dateTime); row.SetField("emp_num", entity.empNum); row.SetField("bin_num", entity.binNum); row.SetField("stock_stat", entity.stockStat); row.SetField("uom", entity.uom); 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("truck_id", entity.truckId); row.SetField("row_status", entity.rowStatus); row.SetField("case_quantity", entity.caseQuantity); row.SetField("trans_user", entity.transUser); row.SetField("trans_date", entity.transDate); row.SetField("trans_proc", entity.transProc); row.SetField("palletdetRowID", entity.rowID.ToByteArray()); }
/// <summary> /// Build a minimal row from a class (key fields only) /// </summary> public static void BuildMinimalRow(ref DataRow row, PalletdetBase entity) { row.SetField("palletdetRowID", entity.rowID.ToByteArray()); }