Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
Dapper
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
Dapper
Commits
7b316c2a
Commit
7b316c2a
authored
May 11, 2011
by
simon.cropp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove more unused code
parent
71127e70
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
SqlMapper.cs
Dapper/SqlMapper.cs
+2
-7
No files found.
Dapper/SqlMapper.cs
View file @
7b316c2a
...
@@ -174,7 +174,7 @@ public static GridReader QueryMultiple(this IDbConnection cnn, string sql, dynam
...
@@ -174,7 +174,7 @@ public static GridReader QueryMultiple(this IDbConnection cnn, string sql, dynam
{
{
cmd
=
SetupCommand
(
cnn
,
transaction
,
sql
,
info
.
ParamReader
,
param
,
commandTimeout
);
cmd
=
SetupCommand
(
cnn
,
transaction
,
sql
,
info
.
ParamReader
,
param
,
commandTimeout
);
reader
=
cmd
.
ExecuteReader
();
reader
=
cmd
.
ExecuteReader
();
return
new
GridReader
(
cmd
,
reader
,
cnn
,
sql
);
return
new
GridReader
(
cmd
,
reader
);
}
}
catch
catch
{
{
...
@@ -805,14 +805,10 @@ private static void EmitInt32(ILGenerator il, int value)
...
@@ -805,14 +805,10 @@ private static void EmitInt32(ILGenerator il, int value)
public
class
GridReader
:
IDisposable
public
class
GridReader
:
IDisposable
{
{
private
IDataReader
reader
;
private
IDataReader
reader
;
private
IDbConnection
connection
;
private
IDbCommand
command
;
private
IDbCommand
command
;
private
readonly
string
sql
;
internal
GridReader
(
IDbCommand
command
,
IDataReader
reader
)
internal
GridReader
(
IDbCommand
command
,
IDataReader
reader
,
IDbConnection
connection
,
string
sql
)
{
{
this
.
sql
=
sql
;
this
.
command
=
command
;
this
.
command
=
command
;
this
.
connection
=
connection
;
this
.
reader
=
reader
;
this
.
reader
=
reader
;
}
}
/// <summary>
/// <summary>
...
@@ -863,7 +859,6 @@ private void NextResult()
...
@@ -863,7 +859,6 @@ private void NextResult()
}
}
public
void
Dispose
()
public
void
Dispose
()
{
{
connection
=
null
;
if
(
reader
!=
null
)
if
(
reader
!=
null
)
{
{
reader
.
Dispose
();
reader
.
Dispose
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment