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
5c633e85
Commit
5c633e85
authored
Aug 05, 2014
by
Marc Gravell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added test for issue 142 (cannot repro)
parent
701ad08e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
Tests.cs
Tests/Tests.cs
+28
-0
No files found.
Tests/Tests.cs
View file @
5c633e85
...
@@ -3202,6 +3202,34 @@ public void Issue22_ExecuteScalar()
...
@@ -3202,6 +3202,34 @@ public void Issue22_ExecuteScalar()
geo2
.
IsNotNull
();
geo2
.
IsNotNull
();
}
}
public
void
Issue142_FailsNamedStatus
()
{
var
row1
=
connection
.
Query
<
Issue142_Status
>(
"select @Status as [Status]"
,
new
{
Status
=
StatusType
.
Started
}).
Single
();
row1
.
Status
.
IsEqualTo
(
StatusType
.
Started
);
var
row2
=
connection
.
Query
<
Issue142_StatusType
>(
"select @Status as [Status]"
,
new
{
Status
=
Status
.
Started
}).
Single
();
row2
.
Status
.
IsEqualTo
(
Status
.
Started
);
}
public
class
Issue142_Status
{
public
StatusType
Status
{
get
;
set
;
}
}
public
class
Issue142_StatusType
{
public
Status
Status
{
get
;
set
;
}
}
public
enum
StatusType
:
byte
{
NotStarted
=
1
,
Started
=
2
,
Finished
=
3
}
public
enum
Status
:
byte
{
NotStarted
=
1
,
Started
=
2
,
Finished
=
3
}
#if POSTGRESQL
#if POSTGRESQL
class
Cat
class
Cat
...
...
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