开发者

How do I refresh the SubSonic T4 Template generated code?

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".

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜