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
69b63884
Commit
69b63884
authored
Nov 29, 2015
by
Nick Craver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test for Issue #327
parent
e918254e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
Tests.cs
Dapper.Tests/Tests.cs
+28
-0
No files found.
Dapper.Tests/Tests.cs
View file @
69b63884
...
@@ -2845,6 +2845,34 @@ public void SO30435185_InvalidTypeOwner()
...
@@ -2845,6 +2845,34 @@ public void SO30435185_InvalidTypeOwner()
ex
.
Message
.
IsEqualTo
(
"An enumerable sequence of parameters (arrays, lists, etc) is not allowed in this context"
);
ex
.
Message
.
IsEqualTo
(
"An enumerable sequence of parameters (arrays, lists, etc) is not allowed in this context"
);
}
}
}
}
[
Fact
]
public
void
Issue327_ReadEmptyProcedureResults
()
{
// Actually testing for not erroring here on the mapping having no rows to map on in Read<T>();
connection
.
Execute
(
@"
CREATE PROCEDURE #TestEmptyResults
AS
SELECT Top 0 1 Id, 'Bob' Name;
SELECT Top 0 'Billy Goat' Creature, 'Unicorn' SpiritAnimal, 'Rainbow' Location;"
);
var
query
=
connection
.
QueryMultiple
(
"#TestEmptyResults"
,
commandType
:
CommandType
.
StoredProcedure
);
var
result1
=
query
.
Read
<
Issue327_Person
>();
var
result2
=
query
.
Read
<
Issue327_Magic
>();
result1
.
Any
().
IsFalse
();
result2
.
Any
().
IsFalse
();
}
class
Issue327_Person
{
public
int
Id
{
get
;
set
;
}
public
string
Name
{
get
;
set
;
}
}
class
Issue327_Magic
{
public
string
Creature
{
get
;
set
;
}
public
string
SpiritAnimal
{
get
;
set
;
}
public
string
Location
{
get
;
set
;
}
}
[
Fact
]
[
Fact
]
public
void
Issue295_NullableDateTime_SqlServer
()
public
void
Issue295_NullableDateTime_SqlServer
()
{
{
...
...
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