In my project I'd like to use T4 to generate my enums. To test this, I created a test project with a simple form. In this project I added a .tt file and put my code into that file.
Everything works, but I was a little bit disappointed. I thought that when the project gets executed, the T4 generates the enumeration. So the enumeration is always uptodate. But this ain't the case, right? If you want the enumeration to be updated, you have to do this manually and rebuild your solution. My question is, am I correct in this one? Or did I miss something.
Second, why should I use T4 to create an enum? I mean if the enum changes I have to rebuild my solution.
EDIT: I get my enum values from a database table. The table only has 2 fields: Id and Description