Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

Output parameter from SP inside async method

$
0
0

Hi,

I want to return output parameter for total number of records from stored procedure and call this SP through EF core inside an async method but I am facing issue with out parameter in async method as it does not support out, in or ref parameters. 

Can anyone please suggest how to return output parameter from SP in async method call chain (API action to Business, Business to data access layer), don't wanna change async to normal method or create another method for just count because though that is only count but it is retrieved after many calculation so don't wanna repeat calculation twice.

Thanks! 


Viewing all articles
Browse latest Browse all 1698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>