schambers/fluentmigrator — pull request #330 by zidad (2012-10-25 13:15:02+00:00)
Title: T4 refactoring to a separate project

Added new project for T4 transformation, took most of the code out of FF.Core.ttinclude and placed it in separate classes in a separate project (FluentMigrator.T4) so it's easier to test/develop.

Added a reference to the local project as specified in this SO question: http://stackoverflow.com/questions/3434713/cant-reference-an-assembly-in-a-t4-template

This solution works only in VS2010 and VS2012 and because of that the project is not added to the VS2008 solution.

There's a sample App.config file that assumes there's an AdventureWorks database on your local default SQL server instance to test your transformation.

There's no logical fixes in this pull request yet, only some restructuring and extraction of the code from the templates.

There could be some inefficiencies as I'm not very familiar with T4 (especially the CodeGenerator could be a bit cleaner I think), but the concerns seem a bit more separated this way.