Jeff Sheldon

Mostly.NET
posts - 15, comments - 1, trackbacks - 0

t4

t4
More T4 Template Happiness!

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...

posted @ Sunday, September 05, 2010 1:18 PM | Feedback (1) | Filed Under [ t4 Xsd code-generation ]

Entity Framework – T4 Template Happiness

  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...

posted @ Sunday, September 05, 2010 12:53 PM | Feedback (0) | Filed Under [ entity-framework t4 ]

Powered by:
Powered By Subtext Powered By ASP.NET