shareddbconnectionscope

SubSonic2.2 SharedDbConnectionScope and TransactionScope Transaction Confusion

蹲街弑〆低调 提交于 2019-12-07 16:18:37
问题 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

SubSonic2.2 SharedDbConnectionScope and TransactionScope Transaction Confusion

这一生的挚爱 提交于 2019-12-05 23:51:04
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 SharedDbConnectionScope together with TransactionScope seems to be broken suggest the docs are wrong and