I've just started using SubSonic 3 and I'm using the ActiveRecord T4 template.
If I make a change in the database (add a column to a table for example), what is the correct method for forcing the code produced by the T4 templates to be re-generated?
At the moment I'm just deleting the ActiveRecord folder in my project then dragging the template folder back in again. There must be a better way?
Update:
In addition to Skinniest Man's answe开发者_高级运维r below, I also noticed an icon at the top of the Visual Studio 2008 Solution Explorer called "Transform All Templates". This will generate code from all templates found in the currently selected project.
Right-click on the .tt file (or files) in Visual Studio and select "Run Custom Tool".
精彩评论