Skip to content

Output and input-output parameters now work through ExpressiveCommand and ExpressiveDbCommand - #88

Merged
electricessence merged 1 commit into
masterfrom
split/01-output-parameters
Nov 9, 2026
Merged

electricessence merged 1 commit into
masterfrom
split/01-output-parameters

Conversation

@electricessence

Copy link
Copy Markdown
Collaborator

The generic commands sent every parameter as an input. A stored procedure with an output parameter failed with "expects parameter '@o', which was not supplied", and a return value or input-output value was never read back. Only the SQL Server commands passed the direction on.

ExpressiveCommand and ExpressiveDbCommand now copy the direction given to AddParam / AddReturnParam to the provider's parameter (one line in each AddParams override). No public API change.

See it in ParameterDirectionTests: all four directions reach the provider's parameter on both commands, a mixed call (input, output, input-output, return value) keeps each direction, a NULL-valued output parameter still arrives, and a parameter named from its argument stays an input.

Verified: Release and Debug 0 warnings, 0 errors; 8,737 tests pass in both (the new file adds 7), 86 sample checks, DocFX 0 warnings, style and analyzers 0 findings.

🤖 Generated with Claude Code

… and ExpressiveDbCommand

The generic commands sent every parameter as an input, so a stored procedure with an output parameter failed with "expects parameter '@o', which was not supplied". The direction given to AddParam is now copied to the provider's parameter, as the SQL Server commands already did.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@electricessence
electricessence merged commit 98e3713 into master Nov 9, 2026
2 checks passed
@electricessence
electricessence deleted the split/01-output-parameters branch November 9, 2026 15:34
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.

1 participant