Wondering if anyone knows of a set of T4 templates for generating C# POCO classes and also mapping XML files for NHibernate from a set of tables in a database. I saw that David Hayden has created T4 for generating FluentNH code based upon a DBML model, but I’m not quite ready to use FluentNH yet as there isn’t even an official release yet (although I love the idea).
Anyone know of any T4 templates for using plain NHibernate?
Follow-up: I decided to write my own code generator for NHibernate xml mapping file and POCO classes. I modeled it after the Linq to SQL generator in the T4 Toolbox project.
I plan to post about the experience and provide a download on my site as soon as I get the chance. Let me know if you’re interested and I’ll hurry it up.