Skip to content

fix: pass IParameterCallbacks to GridReader for QueryMultiple#2205

Open
leno23 wants to merge 1 commit into
DapperLib:mainfrom
leno23:fix/gridreader-parameter-callbacks-2179
Open

fix: pass IParameterCallbacks to GridReader for QueryMultiple#2205
leno23 wants to merge 1 commit into
DapperLib:mainfrom
leno23:fix/gridreader-parameter-callbacks-2179

Conversation

@leno23
Copy link
Copy Markdown

@leno23 leno23 commented May 17, 2026

Summary

  • Cast command.Parameters to IParameterCallbacks (not DynamicParameters) when creating GridReader in sync and async QueryMultiple paths.

Motivation

Fixes #2179 — custom IParameterCallbacks implementations were ignored because only DynamicParameters was passed through, even though GridReader already accepts IParameterCallbacks.

Test plan

  • Existing QueryMultiple / async grid reader tests in tests/Dapper.Tests

Made with Cursor

Use IParameterCallbacks when constructing GridReader so custom parameter
implementations receive OnCompleted callbacks, not only DynamicParameters.

Fixes DapperLib#2179
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Possible bug: GridReader constructor uses DynamicParameters cast instead of IParameterCallbacks

1 participant