修复 SqlServer 工作单元 bug #23

需要同时设置 SqlCommand.Connection + Transaction
This commit is contained in:
28810
2019-04-19 13:50:19 +08:00
parent acc1754e2e
commit e3c0f615f9
3 changed files with 15 additions and 4 deletions

View File

@ -323,6 +323,8 @@ namespace FreeSql.Internal.CommonProvider {
isclose = true;
}
cmd.Connection = connection;
if (transaction.Connection == connection)
cmd.Transaction = transaction;
}
if (IsTracePerformance) dt = DateTime.Now;