Using T4 To Generate Enums From Database Lookup Tables
Using T4 to generate enums from database lookup tables
Keep WCF Client Configuration in a Class Library app.config ... this feature lacks the ability to generate the enum from the lookup table, so you ... as above in the edmx designer, but to query the database in the T4 template.
https://www.cityviewcondos.ca/group/pre-construction/discussion/cf59da8c-e508-499e-a234-5c3a42d17143