subsonic / SubSonic-3.0-Templates

T4 Template Project for the peeps
http://subsonic.github.io/
105 stars 46 forks source link

Auto Enum Generation Templates #53

Closed 6pac closed 12 years ago

6pac commented 13 years ago

Generate enums automatically from table row data. There is pretty comprehensive docco in the ttinclude file.

I originally inserted the enum generation into the structs.tt file, but then I switched to a self contained file on the realisation that they could be quite useful for Reporting Services code as an independent unit.

jimkahl commented 12 years ago

I want to incorporate this same functionality with Subsonic 2.1... we have an entire application that uses it and to upgrade to Subsonic 3.x would cause too much trouble at this time. Any ideas how to procede would be appreciated.

6pac commented 12 years ago

Just committed a 2.1 update with the Enum template. See Subsonic/CodeGeneration/Templates/CS_EnumTemplate.aspx for full usage instructions