question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error with QueryMultiple using a stored procedure

See original GitHub issue

Hello!

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:closed
  • Created 2 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
celluj34commented, Mar 14, 2022

Yeah the new package is working great, thank you for fixing it!

1reaction
celluj34commented, Jul 31, 2021

Sure thing, I will try to put one together next week.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found