Automatically create an Enum based on values in a database lookup table?
I’m doing this exact thing, but you need to do some kind of code generation for this to work. In my solution, I added a project “EnumeratedTypes”. This is a console application which gets all of the values from the database and constructs the enums from them. Then it saves all of the enums to … Read more