/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromUdCfgBase(ref DataRow row, UdCfgBase entity) { row.SetField("co_num", entity.coNum); row.SetField("wh_num", entity.whNum); row.SetField("dept_num", entity.deptNum); row.SetField("emp_title", entity.empTitle); row.SetField("emp_num", entity.empNum); row.SetField("sys_name", entity.sysName); row.SetField("udc_type", entity.udcType); row.SetField("udc_id", entity.udcId); row.SetField("udc_value", entity.udcValue); 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("legacy_labelfl", entity.legacyLabelfl); row.SetField("default_respfl", entity.defaultRespfl); row.SetField("user_specificfl", entity.userSpecificfl); row.SetField("auto_respfl", entity.autoRespfl); row.SetField("udc_desc", entity.udcDesc); row.SetField("udc_alt_value", entity.udcAltValue); row.SetField("param_type", entity.paramType); row.SetField("udc_level", entity.udcLevel); row.SetField("ud_cfgRowID", entity.rowID.ToByteArray()); }
/// <summary> /// Build a minimal row from a class (key fields only) /// </summary> public static void BuildMinimalRow(ref DataRow row, UdCfgBase entity) { row.SetField("coNum", entity.coNum); row.SetField("whNum", entity.whNum); row.SetField("deptNum", entity.deptNum); row.SetField("empNum", entity.empNum); row.SetField("udcType", entity.udcType); row.SetField("udcId", entity.udcId); row.SetField("ud_cfgRowID", entity.rowID.ToByteArray()); }