To use this T4 template in Visual Studio 2010 follow the steps below:
- Download the sample project from the Downloads area of the project to see the template in action
- Add the template .tt file into your Entity Framework project
- Change the Source CsdlPath to point to your Entity Framework 4 .edmx file within the T4 template
- The name you give the .tt file will be the name given to the code file it generates
- Don't make changes directly to the generated code as you customize your data annotations. You'll need to copy it to a file you control. Otherwise the template may overwrite changes you make.