0

After hours upon hours of research, I can't retrieve the output parameter from the stored procedure through entity, or a helpful link about the issue. All solutions and suggested practices I have come across don't work or if they do work, they are missing enough detail so their solution can be done correctly. Any help would be appreciated, especially detailed help. Thank you.

Example of approaches that don't work:

ObjectParameter Output = new ObjectParameter("ID", typeof(Int32)); 
context.InsertPerson(Name, Description, Output); 

this link has a solution that I have not tried because it is a bit beyond my knowledge and a bit too invasive, and doesn't really use entity framework in the end.

3
  • 1
    Add stored procedure code, more code of C# that you write Commented Oct 25, 2018 at 2:35
  • Some of your code should help us help you, but in the meantime, did you try this? Commented Oct 25, 2018 at 20:22
  • @FelipeMartins Yes, I Have tried exactly that, it does not work. However after seeing your link I had a light bulb moment and figured out that I forgot to update the entity model and instead wrote the code i need, which doesn;t work obviously. thank you a lot for your help guys. Commented Oct 27, 2018 at 12:35

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.