Is it possible to commit/rollback SqlTransaction in asynchronous?

前端 未结 3 1053
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-17 17:36

I\'m trying to commit/rollback SqlTransaction in asynchronous. But it look like asynchronous is not supported. Is there any way to make it asynchronous without

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-17 18:15

    using (var scope = new TransactionScope(TransactionScopeAsyncFlowOption.Enabled))
    {
        . . .
    }
    

提交回复
热议问题