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
3b0fd2d0
Commit
3b0fd2d0
authored
Aug 06, 2014
by
James Holwell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix up the arbitrary length multi map methods with new command.AddToCache parameter
parent
3d39a115
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
SqlMapper.cs
Dapper NET40/SqlMapper.cs
+1
-1
SqlMapperAsync.cs
Dapper NET45/SqlMapperAsync.cs
+1
-1
No files found.
Dapper NET40/SqlMapper.cs
View file @
3b0fd2d0
...
@@ -1733,7 +1733,7 @@ static IEnumerable<TReturn> MultiMapImpl<TReturn>(this IDbConnection cnn, Comman
...
@@ -1733,7 +1733,7 @@ static IEnumerable<TReturn> MultiMapImpl<TReturn>(this IDbConnection cnn, Comman
object
param
=
command
.
Parameters
;
object
param
=
command
.
Parameters
;
identity
=
identity
??
new
Identity
(
command
.
CommandText
,
command
.
CommandType
,
cnn
,
types
[
0
],
param
==
null
?
null
:
param
.
GetType
(),
types
);
identity
=
identity
??
new
Identity
(
command
.
CommandText
,
command
.
CommandType
,
cnn
,
types
[
0
],
param
==
null
?
null
:
param
.
GetType
(),
types
);
CacheInfo
cinfo
=
GetCacheInfo
(
identity
,
param
);
CacheInfo
cinfo
=
GetCacheInfo
(
identity
,
param
,
command
.
AddToCache
);
IDbCommand
ownedCommand
=
null
;
IDbCommand
ownedCommand
=
null
;
IDataReader
ownedReader
=
null
;
IDataReader
ownedReader
=
null
;
...
...
Dapper NET45/SqlMapperAsync.cs
View file @
3b0fd2d0
...
@@ -437,7 +437,7 @@ private static async Task<IEnumerable<TReturn>> MultiMapAsync<TReturn>(this IDbC
...
@@ -437,7 +437,7 @@ private static async Task<IEnumerable<TReturn>> MultiMapAsync<TReturn>(this IDbC
object
param
=
command
.
Parameters
;
object
param
=
command
.
Parameters
;
var
identity
=
new
Identity
(
command
.
CommandText
,
command
.
CommandType
,
cnn
,
types
[
0
],
param
==
null
?
null
:
param
.
GetType
(),
types
);
var
identity
=
new
Identity
(
command
.
CommandText
,
command
.
CommandType
,
cnn
,
types
[
0
],
param
==
null
?
null
:
param
.
GetType
(),
types
);
var
info
=
GetCacheInfo
(
identity
,
param
);
var
info
=
GetCacheInfo
(
identity
,
param
,
command
.
AddToCache
);
bool
wasClosed
=
cnn
.
State
==
ConnectionState
.
Closed
;
bool
wasClosed
=
cnn
.
State
==
ConnectionState
.
Closed
;
try
{
try
{
if
(
wasClosed
)
await
((
DbConnection
)
cnn
).
OpenAsync
().
ConfigureAwait
(
false
);
if
(
wasClosed
)
await
((
DbConnection
)
cnn
).
OpenAsync
().
ConfigureAwait
(
false
);
...
...
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