# IT:AD:Transformations:T4 # * [[../|(UP)]] {{indexmenu>.#2|nsort tsort}} ## Resources ## * [Crashcourse in T4](http://bit.ly/vo4tVo) * [Solution to T4 Editor Hang](http://bit.ly/tc53ak) * [Logging EF4 Statements](http://bit.ly/u5zzea) * [Self Tracking EF4 Entities over WCF](http://bit.ly/sffE8g) * Shows how to do it. * [EF4: Importing Databases]() * [EF4: Building Databases from the Model](http://bit.ly/eAhJUD) * [EF4: Enums](http://bit.ly/t0l6Cm) --- ## Resources ## But i think I like the idea of working directly off of reading the *.edmx files...and for that one needs the MetadataLoader http://www.olegsych.com/2008/09/t4-tutorial-creatating-your-first-code-generator/ http://msdn.microsoft.com/en-us/library/bb126421.aspx#Template Creating Custom Text Template Directive Processors. More Links: http://sharedtolearn.blogspot.com/ http://msdn.microsoft.com/en-us/library/ff477603.aspx ADO.NET EntityObject Generator Template ADO.NET Self-Tracking Entity Generator Template http://sharedtolearn.blogspot.com/2010/06/entity-framework-40-and-t4-templates-to.html .ttinclude: http://msdn.microsoft.com/en-us/library/ff477603.aspx http://slappyza.wordpress.com/2010/08/08/getting-the-entity-framework-to-generate-an-interface-for-mocking/ http://msdn.microsoft.com/en-us/library/system.data.metadata.edm.edmitemcollection.aspx Interfaces in poco: http://msmvps.com/blogs/matthieu/archive/2009/06/26/poco-t4.aspx Not great, but maybe something can be reused: http://blogs.microsoft.co.il/blogs/gilf/archive/2010/07/05/repository-and-unit-of-work-t4-template-for-entity-framework.aspx Hum: http://blogs.microsoft.co.il/blogs/gilf/default.aspx?PageIndex=3 http://msdn.microsoft.com/en-us/library/bb126445.aspx Linq capable Enums in T4