Gets the ADO.NET connection.

Namespace: NHibernate
Assembly: NHibernate (in NHibernate.dll) Version: 3.2.0.4000 (3.2.0.4000)

Syntax

C#
IDbConnection Connection { get; }
Visual Basic
ReadOnly Property Connection As IDbConnection
	Get
Visual C++
property IDbConnection^ Connection {
	IDbConnection^ get ();
}

Remarks

Applications are responsible for calling commit/rollback upon the connection before closing the ISession.

See Also