title: How to generate all my entities composed two tables for each entity via a T4 automation
body: <p>I have a class library project for a data access layer that uses Entity Framework 4. My project needs a versioning concept. My database contains many tables that contain «Id» and «CreationDateTime».  Each table is associated with a version table that contains the detail. All Tables are constructed in the same manner and suffixed with «Version» for the version table. </p>
  
  <p>I search for a way to generate all my entities (EF4 models) via a T4 automation that would unified Table and TableVersion (for the specified version) in one entity. </p>
  
  <p>This unified Entity must support get, insert, update and delete operations.</p>
  
  <p>Is it possible to do by modifying one of the T4 templates ?  If it is, how ?</p>
  
  <p>Thanks a lot for any pointers.</p>