Can anyone explain Executing Stored Procedure from EF also that procedure should accept data in array list
Loading
Can anyone explain Executing Stored Procedure from EF also that procedure should accept data in array list
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh KumarPosted Dec 13, 2024, 5:32 AM
Hello Kiran,
You can create as below,
Call Store procedure from EF
Create your store procedure,
Kiran KumarPosted Dec 13, 2024, 4:47 AM
We need to configure the parameter data type as we do in SQLCommand , here, will it identify with not mentioning parameter type just with procedure name from ExecuteMyStoredProcedure function
Also, my requirement is sending the details in dictionary
I edit multiple rows in grid and click apply , it will send to procedure and update the data by Id
Few times it may requires multiple data points for that same Id ex :
Rajeesh MenothPosted Dec 13, 2024, 4:38 AM
Hi Kiran,
To execute a stored procedure from Entity Framework that accepts a list (array) as a parameter, you can use the following article approach with the help of Table-Valued Parameters (TVP).
Try this steps.