📅  最后修改于: 2022-03-11 15:00:28.050000             🧑  作者: Mango
using (var ambientTxn = new TransactionScope(TransactionScopeAsyncFlowOption.Enabled))
using (var txn = await context.Database.BeginTransactionAsync())
{
}