How to get the sql query from a NHibernate save

Posted by adriaanp on Stack Overflow See other posts from Stack Overflow or by adriaanp
Published on 2010-03-15T13:01:17Z Indexed on 2010/03/15 13:09 UTC
Read the original article Hit count: 153

Filed under:

I am trying to create a type of recorded data transaction that I can replay on a different database.

For example I am capturing an order into a system, when I save that I want to be able to "export" a sql script that I can run on another database to create the same order.

I am using NHibernate and I am trying to catch the sql query string for the save operation to save to a file, but with no success.

© Stack Overflow or respective owner

Related posts about nhibernate