/// <summary> /// Update a database row from a class /// </summary> public static void UpdateRowFromSysparDefBase(ref DataRow row, SysparDefBase entity) { row.SetField("type_id", entity.typeId); row.SetField("parameter_id", entity.parameterId); row.SetField("user_settable", entity.userSettable); row.SetField("data_type", entity.dataType); row.SetField("column_format", entity.columnFormat); row.SetField("column_widget", entity.columnWidget); row.SetField("column_text", entity.columnText); row.SetField("text_values", entity.textValues); row.SetField("default_value", entity.defaultValue); row.SetField("name", entity.name); row.SetField("description", entity.description); row.SetField("options", entity.options); 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("syspar_defRowID", entity.rowID.ToByteArray()); }
/// <summary> /// Build a minimal row from a class (key fields only) /// </summary> public static void BuildMinimalRow(ref DataRow row, SysparDefBase entity) { row.SetField("typeId", entity.typeId); row.SetField("parameterId", entity.parameterId); row.SetField("syspar_defRowID", entity.rowID.ToByteArray()); }