提交 7b316c2a 编写于 作者: S simon.cropp

remove more unused code

上级 71127e70
......@@ -174,7 +174,7 @@ public static GridReader QueryMultiple(this IDbConnection cnn, string sql, dynam
{
cmd = SetupCommand(cnn, transaction, sql, info.ParamReader, param, commandTimeout);
reader = cmd.ExecuteReader();
return new GridReader(cmd, reader, cnn, sql);
return new GridReader(cmd, reader);
}
catch
{
......@@ -805,14 +805,10 @@ private static void EmitInt32(ILGenerator il, int value)
public class GridReader : IDisposable
{
private IDataReader reader;
private IDbConnection connection;
private IDbCommand command;
private readonly string sql;
internal GridReader(IDbCommand command, IDataReader reader, IDbConnection connection, string sql)
internal GridReader(IDbCommand command, IDataReader reader)
{
this.sql = sql;
this.command = command;
this.connection = connection;
this.reader = reader;
}
/// <summary>
......@@ -863,7 +859,6 @@ private void NextResult()
}
public void Dispose()
{
connection = null;
if (reader != null)
{
reader.Dispose();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册