To use this T4 template in Visual Studio 2010 follow the steps below:

  1. Download the sample project from the Downloads area of the project to see the template in action
  2. Add the template .tt file into your Entity Framework project
  3. Change the Source CsdlPath to point to your Entity Framework 4 .edmx file within the T4 template
  4. The name you give the .tt file will be the name given to the code file it generates
  5. 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.

Last edited Feb 20, 2011 at 9:27 PM by dwahlin, version 1

Comments

No comments yet.