Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ConnectionUtils.GetConnectionTxPair Method

Get a ADO.NET Connection/Transaction Pair for the given IDbProvider. Changes any exception into the Spring hierarchy of generic data access exceptions, simplifying calling code and making any exception that is thrown more meaningful.

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

Parameters

provider
The provider.

Return Value

A Connection/Transaction pair.

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