-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[Ef Core 5.0] Call a stored procedure and retrieve value #21039
Comments
Blog post coming up! |
Perfect it work ! thanks for your help ! |
On the same way, how I can call a scalar function directly? I only find example when its use inside entity request but not from outside ? (with the DbFunction attribute) If i take back my example
I try
but without success (and it seem i can't put "as Nb" in the scalar function) |
Please raise a new issue and I might have a look. |
@ErikEJ may I ask why your example contains a call to |
Yes, calling first on the result of FromSql is problematic. Maybe you can use AsAsyncEnumetable? |
I will tryu that, thanks! |
Hello guys, i already read a lot of docs and try a lot of stuff but im definitively not able not call a particular stored proc, surprisely i don't find any doc in this situation, so maybe you have an idea
I Have a stored procedure like this
you call it in sql like this
I'm for now not able to make this kind of code works, i don't know if it the good way to do that, i don't find any docs (or its doc for ef core 1 or 2, it seem things change since). i only find docs with output parameter which is not my case
this code finish with exception "@returnval not declared". How i can make it works ?
I also try this kind of syntax, im not sure its relevant in my case, anyway i was not able to make it works too
thanks for your help !
The text was updated successfully, but these errors were encountered: