T4 templates have been available since Visual Studio 2005, but in VS 2010 templates are much easier to create and use. Thiss introduction to T4 template syntax and tools will teach you how to implement the Repository and UnitOfWork patterns for EF4 DbContext.