Update uow

This commit is contained in:
sunkaixuan
2022-08-31 20:11:30 +08:00
parent d923ba2269
commit 333545eb14

View File

@@ -39,7 +39,7 @@ namespace SqlSugar
{
this.Tenant.RollbackTran();
}
if (IsClose == false)
if (this.Db.Ado.Transaction==null&&IsClose == false)
{
this.Db.Close();
}
@@ -81,7 +81,7 @@ namespace SqlSugar
this.Tenant.CommitTran();
IsCommit = true;
}
if (this.IsClose == false)
if (this.Db.Ado.Transaction==null&&this.IsClose == false)
{
this.Db.Close();
IsClose = true;