Entity Framework Core extension to Execute Stored procedure and get results back

Since Entity Framework Core is fairly new (at the time I am writing) and still under development. Not most of the required features are not there out of the box and you will have to write extensions. I have to utilise an existing stored procedure to get some data from database. I have to use ADO for this, Create a file name DatabaseContextExtensions.cs and paste below code.

And this is the usage.


Leave a comment