Output parameters are not being treated as input/output
See original GitHub issueoutput
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:
- Created 2 years ago
- Comments:5 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I implemented a fix for this in the latest daily build, would be grateful if you could try it out.
Created a PR: https://github.com/ErikEJ/EFCorePowerTools/pull/1145