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
f6e29fec
Commit
f6e29fec
authored
Aug 05, 2014
by
maxim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
It does not look like we need above if since we are typecasting value to T at the end.
parent
5039ea1c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
Dapper NET35.csproj
Dapper NET35/Dapper NET35.csproj
+1
-0
Dapper NET40.csproj
Dapper NET40/Dapper NET40.csproj
+1
-0
SqlMapper.cs
Dapper NET40/SqlMapper.cs
+1
-4
Dapper NET45.csproj
Dapper NET45/Dapper NET45.csproj
+1
-0
No files found.
Dapper NET35/Dapper NET35.csproj
View file @
f6e29fec
...
@@ -42,6 +42,7 @@
...
@@ -42,6 +42,7 @@
<Reference
Include=
"System"
/>
<Reference
Include=
"System"
/>
<Reference
Include=
"System.Core"
/>
<Reference
Include=
"System.Core"
/>
<Reference
Include=
"System.Data"
/>
<Reference
Include=
"System.Data"
/>
<Reference
Include=
"System.XML"
/>
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
<Compile
Include=
"..\Dapper NET40\Properties\AssemblyInfo.cs"
>
<Compile
Include=
"..\Dapper NET40\Properties\AssemblyInfo.cs"
>
...
...
Dapper NET40/Dapper NET40.csproj
View file @
f6e29fec
...
@@ -42,6 +42,7 @@
...
@@ -42,6 +42,7 @@
<Reference
Include=
"System.Core"
/>
<Reference
Include=
"System.Core"
/>
<Reference
Include=
"Microsoft.CSharp"
/>
<Reference
Include=
"Microsoft.CSharp"
/>
<Reference
Include=
"System.Data"
/>
<Reference
Include=
"System.Data"
/>
<Reference
Include=
"System.XML"
/>
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
<Compile
Include=
"SqlMapper.cs"
/>
<Compile
Include=
"SqlMapper.cs"
/>
...
...
Dapper NET40/SqlMapper.cs
View file @
f6e29fec
...
@@ -1297,10 +1297,7 @@ private static IEnumerable<T> QueryImpl<T>(this IDbConnection cnn, CommandDefini
...
@@ -1297,10 +1297,7 @@ private static IEnumerable<T> QueryImpl<T>(this IDbConnection cnn, CommandDefini
while
(
reader
.
Read
())
while
(
reader
.
Read
())
{
{
object
val
=
func
(
reader
);
object
val
=
func
(
reader
);
if
(
effectiveType
==
typeof
(
object
))
if
(
val
==
null
||
val
is
T
)
{
{
yield
return
(
T
)(
object
)
val
;
}
else
if
(
val
==
null
||
val
is
T
)
{
yield
return
(
T
)
val
;
yield
return
(
T
)
val
;
}
else
{
}
else
{
yield
return
(
T
)
Convert
.
ChangeType
(
val
,
effectiveType
);
yield
return
(
T
)
Convert
.
ChangeType
(
val
,
effectiveType
);
...
...
Dapper NET45/Dapper NET45.csproj
View file @
f6e29fec
...
@@ -40,6 +40,7 @@
...
@@ -40,6 +40,7 @@
<Reference
Include=
"System.Core"
/>
<Reference
Include=
"System.Core"
/>
<Reference
Include=
"Microsoft.CSharp"
/>
<Reference
Include=
"Microsoft.CSharp"
/>
<Reference
Include=
"System.Data"
/>
<Reference
Include=
"System.Data"
/>
<Reference
Include=
"System.XML"
/>
</ItemGroup>
</ItemGroup>
<ItemGroup>
<ItemGroup>
<Compile
Include=
"..\Dapper NET40\Properties\AssemblyInfo.cs"
>
<Compile
Include=
"..\Dapper NET40\Properties\AssemblyInfo.cs"
>
...
...
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