mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
-
This commit is contained in:
@@ -313,8 +313,7 @@ namespace SqlSugar
|
|||||||
sqlCommand.Parameters.Clear();
|
sqlCommand.Parameters.Clear();
|
||||||
ExecuteAfter(sql, parameters);
|
ExecuteAfter(sql, parameters);
|
||||||
SetConnectionEnd(sql);
|
SetConnectionEnd(sql);
|
||||||
if (this.Context.CurrentConnectionConfig.DbType == DbType.Sqlite&& SugarCompatible.IsFramework)
|
sqlCommand.Dispose();
|
||||||
sqlCommand.Dispose();
|
|
||||||
return sqlDataReader;
|
return sqlDataReader;
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
@@ -456,8 +455,7 @@ namespace SqlSugar
|
|||||||
sqlCommand.Parameters.Clear();
|
sqlCommand.Parameters.Clear();
|
||||||
ExecuteAfter(sql, parameters);
|
ExecuteAfter(sql, parameters);
|
||||||
SetConnectionEnd(sql);
|
SetConnectionEnd(sql);
|
||||||
if (this.Context.CurrentConnectionConfig.DbType == DbType.Sqlite&&SugarCompatible.IsFramework)
|
sqlCommand.Dispose();
|
||||||
sqlCommand.Dispose();
|
|
||||||
return sqlDataReader;
|
return sqlDataReader;
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
Reference in New Issue
Block a user