Is there a way to use TransactionScope with an existing connection?

前端 未结 3 1758
别跟我提以往
别跟我提以往 2020-12-10 03:04

I have some code that works like the advised use of TransactionScope, but has an ambient connection instead of an ambient transaction.

Is there a way to use a Transa

3条回答
  •  情深已故
    2020-12-10 03:22

    After more research, the answer to my question turned out to be:

    No, the connection needs to be opened after the TransactionScope object is instantiated.

提交回复
热议问题