This commit is contained in:
sunkaixuan 2022-05-24 11:11:01 +08:00
parent a3db3c21bf
commit 847f1ffc5d

View File

@ -74,7 +74,7 @@ namespace SqlSugar
return result; return result;
} }
public void Commit() public bool Commit()
{ {
if (this.IsTran && this.IsCommit == false) if (this.IsTran && this.IsCommit == false)
{ {
@ -86,6 +86,7 @@ namespace SqlSugar
this.Db.Close(); this.Db.Close();
IsClose = true; IsClose = true;
} }
return IsCommit;
} }
} }
} }