Throws an InvalidOperationException if this method is called
because the user is responsible for creating IDbConnections.
Namespace: NHibernate.ConnectionAssembly: 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
No value is returned because an InvalidOperationException is thrown.Implements
IConnectionProvider..::..GetConnection()()()()
Exceptions
| Exception | Condition |
|---|---|
| System..::..InvalidOperationException | Thrown when this method is called. User is responsible for creating IDbConnections. |