[後端] 修改同步錯誤
This commit is contained in:
parent
12208825d9
commit
12b1a14319
@ -443,10 +443,18 @@ namespace Repository.BackendRepository.Implement
|
||||
using (TransactionScope scope = new TransactionScope((TransactionScopeOption)TransactionScopeAsyncFlowOption.Enabled))
|
||||
{
|
||||
await conn.ExecuteAsync(sb.ToString());
|
||||
await conn.ExecuteAsync(sb2.ToString());
|
||||
}
|
||||
|
||||
sb.Clear();
|
||||
}
|
||||
|
||||
if (sb2.Length > 0)
|
||||
{
|
||||
using (TransactionScope scope = new TransactionScope((TransactionScopeOption)TransactionScopeAsyncFlowOption.Enabled))
|
||||
{
|
||||
await conn.ExecuteAsync(sb2.ToString());
|
||||
}
|
||||
|
||||
sb2.Clear();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user