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.

Mohammad Akbari
  • 4,486
  • 6
  • 43
  • 74
  • 1
    Add stored procedure code, more code of C# that you write – Mohammad Akbari Oct 25 '18 at 02:35
  • Some of your code should help us help you, but in the meantime, [did you try this?](https://stackoverflow.com/a/41488387/10558242) – Felipe Martins Oct 25 '18 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. – MostafaAds Oct 27 '18 at 12:35

0 Answers0