In Visual Studio, a T4 text template is a mixture of text blocks and control logic that can generate a text file. The control logic is written as fragments of program code in Visual C# or Visual Basic. The generated file can be text of any kind, such as a Web page, or a resource file, or program source code in any language.
Generating code for yout ASP.NET MVC Projects:
I highly recommend you spend some time to understand how it works and you will see the amount of time you will gain in your future projects.