mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-03 12:18:00 +08:00
Synchronization code
This commit is contained in:
parent
c04b7ab1de
commit
e5106b2f6f
@ -26,7 +26,7 @@ namespace SqlSugar
|
||||
|
||||
public void CloseDb()
|
||||
{
|
||||
if (this.Context.CurrentConnectionConfig.IsAutoCloseConnection)
|
||||
if (this.Context.CurrentConnectionConfig.IsAutoCloseConnection && this.Context.Ado.Transaction == null)
|
||||
{
|
||||
this.Context.Close();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user