Update Sqlite BulkCopy Tran BUG

This commit is contained in:
sunkaixuan
2023-09-22 16:11:42 +08:00
parent 2c271de069
commit bcba12081d

View File

@@ -26,7 +26,7 @@ namespace SqlSugar
public void CloseDb() public void CloseDb()
{ {
if (this.Context.CurrentConnectionConfig.IsAutoCloseConnection) if (this.Context.CurrentConnectionConfig.IsAutoCloseConnection&&this.Context.Ado.Transaction==null)
{ {
this.Context.Close(); this.Context.Close();
} }