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
9226076f
Commit
9226076f
authored
Sep 15, 2014
by
Marc Gravell
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #170 from tuespetre/master
Fixed regression with sproc tests
parents
1a935bd7
9ff6cd17
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
10 deletions
+16
-10
SqlMapper.cs
Dapper NET40/SqlMapper.cs
+16
-10
No files found.
Dapper NET40/SqlMapper.cs
View file @
9226076f
...
@@ -4397,16 +4397,22 @@ protected void AddParameters(IDbCommand command, SqlMapper.Identity identity)
...
@@ -4397,16 +4397,22 @@ protected void AddParameters(IDbCommand command, SqlMapper.Identity identity)
// DynamicParameters until now.
// DynamicParameters until now.
foreach
(
IDbDataParameter
param
in
command
.
Parameters
)
foreach
(
IDbDataParameter
param
in
command
.
Parameters
)
{
{
parameters
.
Add
(
param
.
ParameterName
,
new
ParamInfo
// If someone makes a DynamicParameters with a template,
{
// then explicitly adds a parameter of a matching name,
AttachedParam
=
param
,
// it will already exist in 'parameters'.
CameFromTemplate
=
true
,
if
(!
parameters
.
ContainsKey
(
param
.
ParameterName
))
DbType
=
param
.
DbType
,
{
Name
=
param
.
ParameterName
,
parameters
.
Add
(
param
.
ParameterName
,
new
ParamInfo
ParameterDirection
=
param
.
Direction
,
{
Size
=
param
.
Size
,
AttachedParam
=
param
,
Value
=
param
.
Value
CameFromTemplate
=
true
,
});
DbType
=
param
.
DbType
,
Name
=
param
.
ParameterName
,
ParameterDirection
=
param
.
Direction
,
Size
=
param
.
Size
,
Value
=
param
.
Value
});
}
}
}
// Now that the parameters are added to the command, let's place our output callbacks
// Now that the parameters are added to the command, let's place our output callbacks
...
...
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