I need to create an enum based on a table from the database.
DB table MyColors: id/title/value 1/Red/1 2/Green/4
dynamic create
enum
One option to is to define an XML Schema and the required values as enum and generate the class files, so that we can manage the values outside the source code, however we cannot dynamically generate the enum values from the database.