-
-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't execute reverse engineered Stored procedures #1081
Comments
Thanks, reverted, must think of a better way to support input/output |
I looked at your attempted fix, and it wouldn't have worked for the desired reason anyway. Why? Because you weren't supplying a value. Conceptual example: a SPROC that saves an object to the database. The ID of the item may or may not be supplied in an |
I am working on a better fix now! 😀 |
Sorry. Just realized I intended to post the above on the other issue. |
I will create a PR and you can review it! |
Urgh. I'm no expert here. I'm several years out of date on my EF experience and just got caught up in the past few days from reviewing a team member's PR. I just got DB access today and haven't run my team member's code. But we can potentially work together and get it tested. If it helps, I found this discussion of what happens with the direction parameter as of 2016: https://www.codeproject.com/Articles/1151843/Input-Output-and-Input-Output-SqlParameter-Behavio |
Migrated discussion back to the other issue. |
This is a regression introduced by #1069
Steps to reproduce
Create a database and get the reverse engineered model
When I try to execute an SP I get the following error
It works fine if I change manually the Direction to System.Data.ParameterDirection.Output in spCourseCountAsync
Further technical details
EF Core Power Tools version: 2.5.731
Database engine: SQL Server
Visual Studio version: Visual Studio 2019 16.11.2
The text was updated successfully, but these errors were encountered: