views:

12

answers:

1

Hello. I'm building a mechanism to take XML data from a queue and call stored procs to save the data from the XML document directly to the database. This seems like something that NHibernate could address, but of course most of the information I find discusses going from objects to database instead of another data format (XML, in this case). Is there a way to use NHibernate in this fashion or am I barking up the wrong tree?

Thanks.

+2  A: 

I think NH is not the right tool for this. Its purpose is to map classes to a relational database. Unless you deserialize the XML to an object model and let NH do the mapping to the database, you can't benefit much from it.

Stefan Steinegger