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
f93b5ffb
Commit
f93b5ffb
authored
Mar 18, 2015
by
Marc Gravell
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #235 from mburbea/patch-1
QueryAsync<Dynamic> should return an IEnumerable<DapperRow>
parents
1bd4ee81
5b1ed92b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
SqlMapperAsync.cs
Dapper NET45/SqlMapperAsync.cs
+7
-7
No files found.
Dapper NET45/SqlMapperAsync.cs
View file @
f93b5ffb
...
...
@@ -18,18 +18,18 @@ public static partial class SqlMapper
/// Execute a query asynchronously using .NET 4.5 Task.
/// </summary>
/// <remarks>Note: each row can be accessed via "dynamic", or by casting to an IDictionary<string,object></remarks>
public
static
Task
<
IEnumerable
<
dynamic
>>
QueryAsync
(
this
IDbConnection
cnn
,
string
sql
,
dynamic
param
=
null
,
IDbTransaction
transaction
=
null
,
int
?
commandTimeout
=
null
,
CommandType
?
commandType
=
null
)
public
static
async
Task
<
IEnumerable
<
dynamic
>>
QueryAsync
(
this
IDbConnection
cnn
,
string
sql
,
dynamic
param
=
null
,
IDbTransaction
transaction
=
null
,
int
?
commandTimeout
=
null
,
CommandType
?
commandType
=
null
)
{
return
QueryAsync
<
dynamic
>(
cnn
,
typeof
(
DapperRow
),
new
CommandDefinition
(
sql
,
(
object
)
param
,
transaction
,
commandTimeout
,
commandType
,
CommandFlags
.
Buffered
,
default
(
CancellationToken
))
);
return
await
QueryAsync
<
DapperRow
>(
cnn
,
typeof
(
DapperRow
),
new
CommandDefinition
(
sql
,
(
object
)
param
,
transaction
,
commandTimeout
,
commandType
,
CommandFlags
.
Buffered
,
default
(
CancellationToken
))).
ConfigureAwait
(
false
);
}
/// <summary>
/// Execute a query asynchronously using .NET 4.5 Task.
/// </summary>
/// <remarks>Note: each row can be accessed via "dynamic", or by casting to an IDictionary<string,object></remarks>
public
static
Task
<
IEnumerable
<
dynamic
>>
QueryAsync
(
this
IDbConnection
cnn
,
CommandDefinition
command
)
public
static
async
Task
<
IEnumerable
<
dynamic
>>
QueryAsync
(
this
IDbConnection
cnn
,
CommandDefinition
command
)
{
return
QueryAsync
<
dynamic
>(
cnn
,
typeof
(
DapperRow
),
command
);
return
await
QueryAsync
<
DapperRow
>(
cnn
,
typeof
(
DapperRow
),
command
).
ConfigureAwait
(
false
);
}
/// <summary>
...
...
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