Update core

This commit is contained in:
skx
2020-04-21 16:05:25 +08:00
parent 2e4a984564
commit cfcfbd7fd1

View File

@@ -311,8 +311,7 @@ namespace SqlSugar
sqlCommand.Parameters.Clear();
ExecuteAfter(sql, parameters);
SetConnectionEnd(sql);
if (this.Context.CurrentConnectionConfig.DbType == DbType.Sqlite)
sqlCommand.Dispose();
//sqlCommand.Dispose();
return sqlDataReader;
}
catch (Exception ex)
@@ -446,8 +445,7 @@ namespace SqlSugar
sqlCommand.Parameters.Clear();
ExecuteAfter(sql, parameters);
SetConnectionEnd(sql);
if (this.Context.CurrentConnectionConfig.DbType == DbType.Sqlite)
sqlCommand.Dispose();
//sqlCommand.Dispose();
return sqlDataReader;
}
catch (Exception ex)