Error with QueryMultiple using a stored procedure
See original GitHub issueHello!
I’ve been tracking this issue for a while, and got some insight that can help. Internally, you’re using a Dictionary
via the ParameterInfos
class to store the parameters. This has some problems when executing a stored procedure that returns multiple result sets, as referenced in this Dapper issue. As per the most recent comment, if you instead use DynamicParameters
instead of a Dictionary
, the problem is avoided.
Would it be possible to use the DynamicParameters object instead of a dictionary when sending the command to Dapper?
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (3 by maintainers)
Top Results From Across the Web
QueryMultiple with CommandType.StoredProcedure fails ...
I have run in to what I believe is a bug with QueryMultiple and commandType= StoredProcedure: Given this stored procedure: CREATE PROCEDURE ...
Read more >dapper querymultiple spliton error - asp.net mvc
I'm using: ASP.NET MVC, MySql, Dapper.NET micro-orm I made a stored procedure with 3 SELECTs, two of which returns lists and the third...
Read more >Get Multiple Results from Stored Procedure using Dapper ...
Here I will explain how to get multiple results or records from stored procedure using dapper in c#, vb.net or access multiple results...
Read more >Executing Stored Procedures With Dapper
All Dapper querying methods allow executing stored procedures without writing extra code by specifying the commandType parameter to 'StoredProcedure'.
Read more >A Practical Guide to Dapper - Simple Talk
Dapper is a lightweight framework for data access. Camilo Reyes explains how to query, call stored procedures, and more with Dapper in C#....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yeah the new package is working great, thank you for fixing it!
Sure thing, I will try to put one together next week.