In this post I will show how you can call stored procedures with OUTPUT parameters from EF Core. I am using the Northwind database for the sample code.
Erik’s code doesn’t have this problem, but using FromSqlRaw
can lead to SQL injection problems if you aren’t careful with sanitizing inputs.