/// <summary> /// Build a minimal row from a class (key fields only) /// </summary> public static void BuildMinimalRow(ref DataRow row, LabelmstBase entity) { row.SetField("coNum", entity.coNum); row.SetField("whNum", entity.whNum); row.SetField("sysName", entity.sysName); row.SetField("programName", entity.programName); row.SetField("procName", entity.procName); row.SetField("labelId", entity.labelId); row.SetField("labelmstRowID", entity.rowID.ToByteArray()); }
/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromLabelmstBase(ref DataRow row, LabelmstBase entity) { row.SetField("co_num", entity.coNum); row.SetField("wh_num", entity.whNum); row.SetField("sys_name", entity.sysName); row.SetField("program_name", entity.programName); row.SetField("proc_name", entity.procName); row.SetField("label_id", entity.labelId); row.SetField("dd_file", entity.ddFile); row.SetField("label_file", entity.labelFile); 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("labelmstRowID", entity.rowID.ToByteArray()); }