views:

83

answers:

0

Hi

What is the best way to implement a TransactionScope in a OpenSessionInView type pattern in a ASP.NET website?

In the OpenSessionInView pattern a Http Module starts and closes a SqlTransaction, so that a single Transaction is used for the whole request rather than multiple Transactions.

I would like to extend it to manage connections to multiple databases and use TransactionScope.

Currently the issue is the TransactionScope, as it should be in a Using () {} statement.

Cheers

Lucifer