Why can't Entity Framework see my Stored Procedure's column information?

后端 未结 10 1309
终归单人心
终归单人心 2020-12-02 14:54

I have the following stored procedure and when I attempt to Function Import it says my Stored Procedure returns no columns. What am I missing? Any Suggestions?

The

10条回答
  •  执笔经年
    2020-12-02 14:59

    If you are using temporary table, the Entity (EDMX) cant understand what is going on.

    So return empty result with the columns name, comment out all your stored procedure and execute in the sql manager, then get the complex type in visual studio. After saving, return your stored procedure to it's original state (uncommented that is).

    good luck/

提交回复
热议问题