0

Is possible use NHibernate to generate a SQL script file?

If not, there is any lib that I can use with NH to generate it instead of I commit the changes?

2
  • A script of what? Are you asking if NH can output a schema for your mappings? Or are you asking if NH queries can be output to a file? Commented Dec 7, 2015 at 18:47
  • I want to output NH queries into a file Commented Dec 7, 2015 at 19:41

1 Answer 1

0

NHibernate does not out support exporting of SQL commands, but you can tweak the it's logging to log sql along with the parameters, please refer.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.