If you worked with NHibernate mappings, you know very well about the namespace declarations on the root element: <hibernate-mapping xmlns=”urn:nhibernate-mapping-2.2″>. We generate these mappings programmatically, and we naturally wondered how to remove the default xmlns:xsd and xmlns:xsi declarations that the XmlSerializer adds, and add the NHibernate URN in the mix. The recipe below outlines the three necessary steps. [...]
Pages
Categories
Stuff
Blogroll