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.

Output parameters are not being treated as input/output

See original GitHub issue

output parameters of stored procedures are not treated as input/output. T-SQL does treat these as input/output.

Steps to reproduce

Reverse engineer a stored procedure with an output parameter. The generated code will not write the value that it receives to the SqlParameter that it has created. As a result, values can’t be passed into these sprocs.

It appears that the issue is [here][bug_source].

Further technical details

EF Core Power Tools version: 2.5.774.0

Database engine: SQL Server

Visual Studio version: Visual Studio 2019 16.11.5

[bug_source]: https://github.com/ErikEJ/EFCorePowerTools/blob/master/src/GUI/RevEng.Core/Procedures/SqlServerStoredProcedureScaffolder.cs#:~:text=}-,if (parameter.Output),},-_sb.AppendLine(%24%22SqlDbType

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ErikEJcommented, Oct 20, 2021

I implemented a fix for this in the latest daily build, would be grateful if you could try it out.

0reactions
ErikEJcommented, Oct 19, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

c# - What's wrong with output parameters?
Output parameters can be a code smell indicating that your method is doing too much. If you need to return more than one...
Read more >
Why are my flow's input/output parameters not working with ...
When trying to use an InvocableMethod in a Flow, I receive the following error: The number of results does not match the number...
Read more >
Modeler input/output variables not working as expected?
I tried to use camunda modeler Input/Output parameters. It doesn't work. What I tried to do: I have a working bpmn process, where...
Read more >
Is it generally considered bad practice to use method input ...
I believe this is called an "out-parameters"... and yes this usually a bad practice, but may come handy if used properly.
Read more >
How do I use the Input, Output, Input/Output options on ...
I am attempting to create a confirmation dialogue in perspective. I need it to popup, ask the user if they are certain they...
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