How to get the connection string value from hibernate.cfg.xml file?

Posted by MCardinale on Stack Overflow See other posts from Stack Overflow or by MCardinale
Published on 2010-03-12T12:24:16Z Indexed on 2010/03/12 12:27 UTC
Read the original article Hit count: 220

I have a method that needs to get my Connection String from the connection.connection_string property on hibernate.cfg.xml file.

I've tried use NHibernate.Cfg.Environment.ConnectionString, but it didn't work.

How can I get this?

Thank you.

© Stack Overflow or respective owner

Related posts about nhibernate

Related posts about fluent-nhibernate