IT:AD:Transformations:T4
Summary
Resources
-
- Shows how to do it.
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://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