SubSonic2.2 SharedDbConnectionScope and TransactionScope Transaction Confusion
问题 ARGH!!! There seems to be a little confusion surrounding the SharedDbConnectionScope and TransactionScope objects to enable wrapping your SubSonic queries within a transaction. The docs suggest specifying the using SharedDbConnectionScope wrapped around the using TransactionScope... using(SharedDbConnectionScope scope = new SharedDbConnectionScope()) { using(TransactionScope ts = new TransactionScope()) { // do something ts.Complete(); } } Then other question here such as Subsonic: Using