Is there a way that I can use to create Enums dynamically? I’m trying to get the names of tables inside a database and create a list of Enums which I would use when coding inside Visual Studio. Is it even possible?
I think I can get the name of tables in a database but the later part, I have no idea about it.
You can’t create an enum easily at runtime.
However, you can use a T4 template to query your database and create a code file that could be compiled in.