I'm new to NHibernate, perhaps someone can point me in the right direction. I have successfully mapped a database row to custom class that basically instantiates a model of that row. That's fine.
In some cases I don't need to do anything with the data, just pass it along to other code that wants an XMLDocument object. Rather than translate the data to a custom class then translate it to another form I'd like to do it in one step. Is it possible to make a mapping that would create an XMLDocument with XMLNodes that represent the rows and columns in the query?
SQLServer can provide query results as XML but we've committed to using NHibernate for database abstraction anyway.
Thanks for your time
|