How to return values from a dynamic SQL Stored Procedure to the Entity Framework?

前端 未结 7 1524
再見小時候
再見小時候 2020-12-15 01:49

I have a Stored Procedure which executes some dynamic SQL. I want to use this Stored Procedure in entity framework 4, but when I try to create a complex type the procedure r

7条回答
  •  情歌与酒
    2020-12-15 02:06

    Well, if EF cannot recognize what your stored procedure must return then create your complex type ahead of time. You can create a complex type by right clicking any where on the model and and add a complex type. Next when you import your stored procedure, you can choose your complex type from the dropdown.

提交回复
热议问题