Normally you will like to generate a file for each entity/class.  Use the BaseExample.tt
 
Steps
- Open the CodeGenTemplates.sln file 
- Create a new Folder for the template under Languages 
- Create a new T4 template in the newly created folder 
- Copy and paste the contents of the Example\BaseExample\BaseExample.tt into the newly created template. 
- Make the desired changes to your template