Tuesday, February 11, 2014

NHibernate ConfORM: Generate the XML mapping

Since a few years, NHibernate offers a code based mapping model. So you no longer need to create and maintain long and cumbersome XML files but instead you can create your mappings from code (and even apply some conventions if you want).

As I’m kind of used to the XML mapping, I find it useful to have a look at the XML for debugging purposes.

Here is the required code to generate the XML mappings from the ConfORM code:

No comments: