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

后端 未结 10 1328
终归单人心
终归单人心 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 15:20

    In completeness and simplifying @benshabatnoam's answer, just put the following code at the beginning:

    IF (1=2)
        SET FMTONLY OFF
    

    Note: it works in EF 6.1.3 and Visual Studio 2015 Update 3

提交回复
热议问题