Skip to content

feat: QueryAsync with CommandDefinition and Type[] multi-map#2209

Open
leno23 wants to merge 1 commit into
DapperLib:mainfrom
leno23:feat/queryasync-commanddefinition-type-array-2193
Open

feat: QueryAsync with CommandDefinition and Type[] multi-map#2209
leno23 wants to merge 1 commit into
DapperLib:mainfrom
leno23:feat/queryasync-commanddefinition-type-array-2193

Conversation

@leno23
Copy link
Copy Markdown

@leno23 leno23 commented May 17, 2026

Summary

Adds QueryAsync<TReturn>(IDbConnection, CommandDefinition, Type[], Func<object[], TReturn>, splitOn) so multi-map queries with more than seven types can use cancellation and other CommandDefinition options.

The private MultiMapAsync implementation already supported this path; the existing string sql overload constructed a CommandDefinition without exposing cancellation.

Test plan

  • TestMultiMapArbitraryMapsCommandDefinitionAsync (10-type map via CommandDefinition + CancellationToken)
  • CI (no local .NET SDK in contributor environment)

Fixes #2193

Made with Cursor

Expose cancellable multi-map queries with more than seven types by
forwarding to the existing MultiMapAsync implementation.
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.

No QueryAsync overload which accepts CommandDefinition, for cancellation, and Type array, for unbounded map

1 participant