Gets the ADO.NET connection.

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

Syntax

Visual Basic (Declaration)
ReadOnly Property Connection As IDbConnection
C#
IDbConnection Connection { get; }
Visual C++
property IDbConnection^ Connection {
	IDbConnection^ get ();
}
JavaScript
function get_connection();

Remarks

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

See Also