Returns the current ADO.NET connection associated with this instance.
Namespace: NHibernateAssembly: 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
If the session is using aggressive connection release (as in a
CMT environment), it is the application's responsibility to
close the connection returned by this call. Otherwise, the
application should not close the connection.