Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ConnectionUtils.DoGetConnection Method

Get a ADO.NET Connection/Transaction Pair for the given IDbProvider. Same as GetConnection but throwing original provider exception.

[Visual Basic]
Public Shared Sub DoGetConnection( _
   ByVal provider As IDbProvider _
)
[C#]
public static ConnectionTxPair DoGetConnection(
   IDbProvider provider
);

Parameters

provider
The provider.

Return Value

Remarks

Is aware of a corresponding Connection/Transaction bound to the current thread, for example when using AdoPlatformTransactionManager. Will bind a IDbConnection to the thread if transaction synchronization is active

See Also

ConnectionUtils Class | Spring.Data.Support Namespace