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
523f7c8d
Commit
523f7c8d
authored
Nov 21, 2015
by
Nick Craver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup, organize project.json orders
parent
89d44089
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
23 deletions
+22
-23
project.json
Dapper.DNX.Tests/project.json
+8
-8
project.json
Dapper.StrongName/project.json
+5
-5
SqlMapper.Async.cs
Dapper/SqlMapper.Async.cs
+4
-5
project.json
Dapper/project.json
+5
-5
No files found.
Dapper.DNX.Tests/project.json
View file @
523f7c8d
...
@@ -20,26 +20,26 @@
...
@@ -20,26 +20,26 @@
"warningsAsErrors"
:
true
"warningsAsErrors"
:
true
},
},
"frameworks"
:
{
"frameworks"
:
{
"net45"
:
{
"net40"
:
{
"compilationOptions"
:
{
"define"
:
[
"ASYNC"
]
},
"frameworkAssemblies"
:
{
"frameworkAssemblies"
:
{
"System.Data"
:
"4.0.0.0"
,
"System.Data"
:
"4.0.0.0"
,
"System.Runtime"
:
"4.0.0.0"
,
"System.Xml"
:
"4.0.0.0"
"System.Xml"
:
"4.0.0.0"
},
},
"dependencies"
:
{
"dependencies"
:
{
"xunit"
:
"
2.1.0
"
"xunit"
:
"
1.9.2
"
}
}
},
},
"net40"
:
{
"net45"
:
{
"compilationOptions"
:
{
"define"
:
[
"ASYNC"
]
},
"frameworkAssemblies"
:
{
"frameworkAssemblies"
:
{
"System.Data"
:
"4.0.0.0"
,
"System.Data"
:
"4.0.0.0"
,
"System.Runtime"
:
"4.0.0.0"
,
"System.Xml"
:
"4.0.0.0"
"System.Xml"
:
"4.0.0.0"
},
},
"dependencies"
:
{
"dependencies"
:
{
"xunit"
:
"
1.9.2
"
"xunit"
:
"
2.1.0
"
}
}
},
},
"dotnet5.4"
:
{
"dotnet5.4"
:
{
...
...
Dapper.StrongName/project.json
View file @
523f7c8d
...
@@ -20,15 +20,15 @@
...
@@ -20,15 +20,15 @@
"warningsAsErrors"
:
true
"warningsAsErrors"
:
true
},
},
"frameworks"
:
{
"frameworks"
:
{
"net45"
:
{
"net40"
:
{
"compilationOptions"
:
{
"define"
:
[
"ASYNC"
]
},
"frameworkAssemblies"
:
{
"frameworkAssemblies"
:
{
"System.Data"
:
"4.0.0.0"
"System.Data"
:
"4.0.0.0"
}
}
},
},
"net40"
:
{
"net45"
:
{
"compilationOptions"
:
{
"define"
:
[
"ASYNC"
]
},
"frameworkAssemblies"
:
{
"frameworkAssemblies"
:
{
"System.Data"
:
"4.0.0.0"
"System.Data"
:
"4.0.0.0"
}
}
...
...
Dapper/SqlMapper.Async.cs
View file @
523f7c8d
...
@@ -18,8 +18,6 @@
...
@@ -18,8 +18,6 @@
namespace
Dapper
namespace
Dapper
{
{
public
static
partial
class
SqlMapper
public
static
partial
class
SqlMapper
{
{
...
@@ -511,7 +509,7 @@ private static async Task<IEnumerable<TReturn>> MultiMapAsync<TReturn>(this IDbC
...
@@ -511,7 +509,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
?
.
GetType
(),
types
);
var
info
=
GetCacheInfo
(
identity
,
param
,
command
.
AddToCache
);
var
info
=
GetCacheInfo
(
identity
,
param
,
command
.
AddToCache
);
bool
wasClosed
=
cnn
.
State
==
ConnectionState
.
Closed
;
bool
wasClosed
=
cnn
.
State
==
ConnectionState
.
Closed
;
try
{
try
{
...
@@ -561,7 +559,7 @@ private static IEnumerable<T> ExecuteReaderSync<T>(IDataReader reader, Func<IDat
...
@@ -561,7 +559,7 @@ private static IEnumerable<T> ExecuteReaderSync<T>(IDataReader reader, Func<IDat
public
static
async
Task
<
GridReader
>
QueryMultipleAsync
(
this
IDbConnection
cnn
,
CommandDefinition
command
)
public
static
async
Task
<
GridReader
>
QueryMultipleAsync
(
this
IDbConnection
cnn
,
CommandDefinition
command
)
{
{
object
param
=
command
.
Parameters
;
object
param
=
command
.
Parameters
;
Identity
identity
=
new
Identity
(
command
.
CommandText
,
command
.
CommandType
,
cnn
,
typeof
(
GridReader
),
param
==
null
?
null
:
param
.
GetType
(),
null
);
Identity
identity
=
new
Identity
(
command
.
CommandText
,
command
.
CommandType
,
cnn
,
typeof
(
GridReader
),
param
?
.
GetType
(),
null
);
CacheInfo
info
=
GetCacheInfo
(
identity
,
param
,
command
.
AddToCache
);
CacheInfo
info
=
GetCacheInfo
(
identity
,
param
,
command
.
AddToCache
);
DbCommand
cmd
=
null
;
DbCommand
cmd
=
null
;
...
@@ -713,7 +711,8 @@ public static Task<T> ExecuteScalarAsync<T>(this IDbConnection cnn, CommandDefin
...
@@ -713,7 +711,8 @@ public static Task<T> ExecuteScalarAsync<T>(this IDbConnection cnn, CommandDefin
{
{
return
ExecuteScalarImplAsync
<
T
>(
cnn
,
command
);
return
ExecuteScalarImplAsync
<
T
>(
cnn
,
command
);
}
}
private
async
static
Task
<
T
>
ExecuteScalarImplAsync
<
T
>(
IDbConnection
cnn
,
CommandDefinition
command
)
private
static
async
Task
<
T
>
ExecuteScalarImplAsync
<
T
>(
IDbConnection
cnn
,
CommandDefinition
command
)
{
{
Action
<
IDbCommand
,
object
>
paramReader
=
null
;
Action
<
IDbCommand
,
object
>
paramReader
=
null
;
object
param
=
command
.
Parameters
;
object
param
=
command
.
Parameters
;
...
...
Dapper/project.json
View file @
523f7c8d
...
@@ -16,16 +16,16 @@
...
@@ -16,16 +16,16 @@
"warningsAsErrors"
:
true
"warningsAsErrors"
:
true
},
},
"frameworks"
:
{
"frameworks"
:
{
"net45"
:
{
"net40"
:
{
"compilationOptions"
:
{
"define"
:
[
"ASYNC"
]
},
"frameworkAssemblies"
:
{
"frameworkAssemblies"
:
{
"System.Data"
:
"4.0.0.0"
,
"System.Data"
:
"4.0.0.0"
,
"System.Xml"
:
"4.0.0.0"
"System.Xml"
:
"4.0.0.0"
}
}
},
},
"net40"
:
{
"net45"
:
{
"compilationOptions"
:
{
"define"
:
[
"ASYNC"
]
},
"frameworkAssemblies"
:
{
"frameworkAssemblies"
:
{
"System.Data"
:
"4.0.0.0"
,
"System.Data"
:
"4.0.0.0"
,
"System.Xml"
:
"4.0.0.0"
"System.Xml"
:
"4.0.0.0"
...
...
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