mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-02-27 16:50:33 +08:00
Update uow
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user