hk5138 / dapper-dot-net

Automatically exported from code.google.com/p/dapper-dot-net
Other
0 stars 0 forks source link

Multi mapping requires explicit connection.Open call #168

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When doing a multimap call, I need to explicitly call connection.Open() first, 
otherwise an exception is thrown. 

Simple queries seem to automatically Open() the connection but multimap calls 
throw an exception: 

"ExecuteReader requires an open and available Connection. The connection's 
current state is closed."

Original issue reported on code.google.com by matt.fr...@gmail.com on 18 Jan 2014 at 5:59

GoogleCodeExporter commented 9 years ago
PS. I am using Dapper 1.13.

Matt

Original comment by matt.fr...@gmail.com on 18 Jan 2014 at 6:01

GoogleCodeExporter commented 9 years ago
I think this is also the case with Execute method..Query does nto throw such an 
exception.

Original comment by ashutosh...@gmail.com on 30 Jan 2014 at 8:56

GoogleCodeExporter commented 9 years ago
I have just stumbled on this too. IMO, the behavior should be consistent across 
all API methods.

Original comment by her...@appsolutemedia.com on 17 Apr 2014 at 9:05

GoogleCodeExporter commented 9 years ago

Original comment by marc.gravell on 5 Aug 2014 at 3:45