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
1e1c7157
Commit
1e1c7157
authored
Oct 21, 2012
by
Marc Gravell
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #58 from mrange/DapperRow
Dapper row
parents
f390f72e
e14839f7
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
380 additions
and
65 deletions
+380
-65
SqlMapper.cs
Dapper/SqlMapper.cs
+377
-62
Assert.cs
Tests/Assert.cs
+2
-2
Tests.cs
Tests/Tests.cs
+1
-1
No files found.
Dapper/SqlMapper.cs
View file @
1e1c7157
This diff is collapsed.
Click to expand it.
Tests/Assert.cs
View file @
1e1c7157
...
...
@@ -10,7 +10,7 @@ static class Assert
public
static
void
IsEqualTo
<
T
>(
this
T
obj
,
T
other
)
{
if
(!
obj
.
Equals
(
other
))
if
(!
Equals
(
obj
,
other
))
{
throw
new
ApplicationException
(
string
.
Format
(
"{0} should be equals to {1}"
,
obj
,
other
));
}
...
...
@@ -18,7 +18,7 @@ public static void IsEqualTo<T>(this T obj, T other)
public
static
void
IsSequenceEqualTo
<
T
>(
this
IEnumerable
<
T
>
obj
,
IEnumerable
<
T
>
other
)
{
if
(!
obj
.
SequenceEqual
(
other
))
if
(!
(
obj
??
new
T
[
0
]).
SequenceEqual
(
other
??
new
T
[
0
]
))
{
throw
new
ApplicationException
(
string
.
Format
(
"{0} should be equals to {1}"
,
obj
,
other
));
}
...
...
Tests/Tests.cs
View file @
1e1c7157
...
...
@@ -2121,7 +2121,7 @@ public void TestMultiSelectWithSomeEmptyGrids()
four
[
0
].
IsEqualTo
(
4
);
}
}
[
ActiveTest
]
public
void
TestDynamicMutation
()
{
var
obj
=
connection
.
Query
(
"select 1 as [a], 2 as [b], 3 as [c]"
).
Single
();
...
...
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