Answers for "An ambient transaction has been detected. The ambient transaction needs to be completed before beginning a transaction on this connection."

0

An ambient transaction has been detected. The ambient transaction needs to be completed before beginning a transaction on this connection.

using (var ambientTxn = new TransactionScope(TransactionScopeAsyncFlowOption.Enabled))
using (var txn = await context.Database.BeginTransactionAsync())
{
}
Posted by: Guest on December-11-2020

Code answers related to "An ambient transaction has been detected. The ambient transaction needs to be completed before beginning a transaction on this connection."

Browse Popular Code Answers by Language