I have data stored in database tables. With the same data I create enums. This is duplication of work and everytime we update the database table, we have to update the enums with new values.
It there a fair solution to this? Something like a dynamic enum? Or how did you solve this issue in your projects?