I have a GetSomeInfo()
stored procedure which returns data like this when I execute it directly in SSMS:
PRODUCT PROFIT
Widget1 9.50
Widget2 10.50
Widget3 8.50
I've auto-genned an ORM with EF6 in my console app. An object reference to the stored procedure was generated and the following result type is returned:
ObjectResult<GetSomeInfo_Result>
However, I'm not sure how to access the stored procedure results from this return object. I tried creating a watch in the debugger to access different properties but I'm not having any luck in getting a handle to the actual data in this return object. Any idea how I can do this?
答案 0 :(得分:0)
我刚刚在结果上调用了ToList(),它给了我需要的信息