Spurred on both by the success of Damien Guard in using T4 to generate Linq to SQL code and of Jeff Reed from the EF team who built a prototype for using T4 to generate EF code, I recently hacked something up that makes it fairly easy to use T4 to generate EF classes. This is an early draft--there are a number of "to do" items--but hopefully someone will find it useful.
In order to try it out, all you need to do is:
The output now is mostly the same as what the shipping codegen creates except that:
Already, though, it's nicer to look at, and if you would like to customize the output, this is a much more pleasant starting point than codegen events with the existing code-dom based generator.
Let me know what you think.