Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ConnectionUtils.DisposeConnection Method

Dispose of the given Connection, created via the given IDbProvider, if it is not managed externally (that is, not bound to the thread).

[Visual Basic]
Public Shared Sub DisposeConnection( _
   ByVal conn As IDbConnection, _
   ByVal dbProvider As IDbProvider _
)
[C#]
public static void DisposeConnection(
   IDbConnection conn,
   IDbProvider dbProvider
);

Parameters

conn
The connection to close if necessary. If this is null the call will be ignored.
dbProvider
The IDbProvider the connection came from

See Also

ConnectionUtils Class | Spring.Data.Support Namespace