只需要将这个地方改一下就可以了哦
using (TransactionScope ts = new TransactionScope(TransactionScopeOption.Required))
{
}
using (TransactionScope ts = new TransactionScope(TransactionScopeAsyncFlowOption.Enabled)){
}
只需要将这个地方改一下就可以了哦
using (TransactionScope ts = new TransactionScope(TransactionScopeOption.Required))
{
}
using (TransactionScope ts = new TransactionScope(TransactionScopeAsyncFlowOption.Enabled)){
}