Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Issues with executing CRUD stored proedure using ExecuteSqlRawAsync in entity core framework

$
0
0

Hi,

I am trying to execute a CRUD stored procedure from entity core framework. This is how my code is:

int result =await _dbContext.Database.ExecuteSqlRawAsync(@"EXEC myschema.myProc @P1, @P2, @P3, @P4 ", sqlParams) where sqlparams is an Object[] of parameter values.

I am not getting either any reponse or error while executing this. Could anyone tell me if I am missing something or this code is incorrect.

Thanks in Advance,

Simpy Sinha


Viewing all articles
Browse latest Browse all 9386

Trending Articles



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