Alternative to Enum for object oriented key/value pairs?
Posted on 2008-10-06
For the same of code readability, I've created an Enum for Cycle Type:
Public Enum CycleType
Unknown = 0
Full = 1
Partial = 2
However, I just got a new requirement that these be configurable via a database -- in other words there will be a table with cycle type ID and description. Is there a way to populate a [something] from a database while retaining the code readability of an Enum.