Gets a new open IDbConnection through the IDriver.

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

Syntax

C#
public override IDbConnection GetConnection()
Visual Basic
Public Overrides Function GetConnection As IDbConnection
Visual C++
public:
virtual IDbConnection^ GetConnection() override

Return Value

An Open IDbConnection.

Implements

IConnectionProvider..::..GetConnection()()()()

Exceptions

ExceptionCondition
System..::..Exception If there is any problem creating or opening the IDbConnection.

See Also