Hi,
I have two native SQL queries. One for Oracle and one for MSSql. I want to run them trough NHibernate. How do I find out what Db-engine I'm on? I know I can add dialect-scope in mapping files for <database-object />
. Is there something similar for <sql-query />
? Or should I put an if-loop in my code and try to figure out the dialect?
Thanks.