Focus on the what, not the how
I saw the following question asked earlier today – the only context given was the code itself.
Customizing the Entity Framework T4 Template, suppressing code analysis
As a brief recap, the reason this post even exists is because the generated code from the EF4 designer does not properly suppress code analysis warnings. In that post, I mentioned that I would provide a proper T4 template and tutorial on integrating it into your EDMX model. This post details the steps to creating and customizing an Entity Framework 4 T4 template.