Entity Framework - stored procedure return value

前端 未结 5 979
别那么骄傲
别那么骄傲 2020-11-28 11:15

I am trying to get the return value of a stored procedure. Here is an example of such a stored procedure:

select
    Name,
    IsEnabled
from
    dbo.somethi         


        
5条回答
  •  再見小時候
    2020-11-28 12:18

    I have been able to get the return value (and also output and input parameters) with Entity Framework 5 (but I think it works from version 4.x) using the code first approach. From your post I don't see what version of EF you are using and how you're doing your mapping; if you consider to use code-first approach here you can find my post with the solution:

    Get return value from stored procedure

提交回复
热议问题