How do I access the connection string?

TrueView provides access to the NHibernate ISession object, which exposes the ADO Connection object.

  NHibernate.ISession session = (NHibernate.ISession)MyApplication.GetManager(entity);
  SqlConnection conn = session.Connection;

We strongly recommend using NHibernate to access the database, as any modifications made directly via SQL statements may not be recognised by the application.

Search Knowledge Base

Have a question? Ask here.

Your name * Your email address * Your question/comment*