开发者

SubSonic 2.2 + SharedDbConnectionScope

开发者 https://www.devze.com 2022-12-12 09:34 出处:网络
I have seen posts (first, second) on StackOverflow that say that SubSonic 2.2\'s SharedDbConnectionScope doesn\'t work with TransactionScope.

I have seen posts (first, second) on StackOverflow that say that SubSonic 2.2's SharedDbConnectionScope doesn't work with TransactionScope.

Can we still rely on SharedDbConnectionScope in other contexts? I want to know if I should be concerned when using code such as the following (where ProviderName is not the default provider for item's type):

u开发者_运维百科sing (var scope = new SharedDbConnectionScope(DataService.Providers[ProviderName]))
{
    item.Save();
}

In my system, it looks like it works fine, but I think I may have had it try to save to the wrong database on rare occasions (may be unrelated).

Thanks!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号