I am using T4 templates to generate config files, with the use of entity framework entities, but I have encountered a design issue. I have some properties that are stored as lookup ids in my database so if I write them to the config file it would appear as an numeric id.
I have had a few ideas of how to translate them to the correct data such as, passing a dictionary of the translated properties. However, this doesn’t seem to be a clean solution.
Am I approaching the lookup id from the wrong direction, should I be using it as an enumerator rather than using ids? or is there a way to translate the lookup ids from within the t4 template?