So this is another post about T4 templates. But not just ANY T4 templates, Preprocessed Text Template’s (oooooh, ahhhhh) Long story short, these are templates you can embed in an application to execute at runtime rather than at design time. There are some limitations compared to regular T4 templates, but needless to say, it sure makes generating code a breeze. Back Story I have this project I needed to work on that involved generating code from an Xsd. This Xsd changed often, so I created a project that did...
I was going to make this one long post, but there’s just too much to cover. I’ll start with this one talking about the new Entity Framework changes and my hacks to use them my way. Disclaimer: I got the base concept of how I do things from someone else, but for the life of me I can’t find the blog post I found months ago that outlines this. I’ll come back and update it once I find it, I’m pretty sure it was posted right before the EF 4.0 was released if that helps anyone find...