开发者

SubSonic 2.2 + SharedDbConnectionScope

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜