Enums
Last updated
Last updated
Every column which has its control type defined as xComboBox will generate an Enum in the Typed DataSet definition. The data type behind this information is not standard .NET enum, it is a custom data structure which can also hold string values, custom conversion operators, support for values outside the Enum spectre.
For creating a new Enums type, the next steps should be followed (Example: table versand_vorschlag, column errorstatus):
Open TimeLine DB Designer (TDD)
Select table -> right mouse click -> edit table
Select the column that will be converted to enum and change control type to xComboBox
Open control definition (via BlueArrow) and fill in ComboItems (convention: ComboxItems descriptions should be written in German)
Save and update DBRepository (Pop-up appears to save DBRepository; the file must be checked in)
Open TimeLine Developer (TLD) and compile TimeLine.TypeDataSets (the new enum will be added to Enums.cs, therefore the file will be automatically checked out)
Open a DataSet where the column is used and save the DataSet (the DataSet will be regenerated as well) If no DataSet is available, this step will be skipped.
Recompile solution in order to get the errors that need to be fixed because of the conversion