I know this is asking alot...and as far as I know there is no way to do this..but I still tought that I whould ask you guys if you might some how figured this one out...
The thing is that I have a database-table that contains information about different user-roles...and I whould like to retrive each roles-name in an enum..and as the data changes in teh table I whould like the enum to change aswell...and I also whould like it to be possible to actually get intellisense once trying to access the enum..
I have looked at the following link and sulotion:
The problem with that as far as I have understod, is that I dont get the intellisense and the code kind of gets even harder to understand...since the whole point with enums is to make the code easy to understand..atleast as far as I know..
So any ideas?...I know this is sort of "madness"..but still worth a shot..
Thanks in advance!
View Complete Post