Entity Framework not getting column info on a different schema

大兔子大兔子 提交于 2019-12-25 01:26:32

问题


I am having trouble getting column information on a different schema.

It was working fine until we changed the connection string.

default schema is [dbo] the newly adding stored procedure is in "different_schema"

Does anyone know and had the same experience on this issue?

Thank you in advance.


回答1:


At the start of the stored proc temporarily add

SET FMTONLY OFF

to get the column information returned.

This is explained well here



来源:https://stackoverflow.com/questions/46940660/entity-framework-not-getting-column-info-on-a-different-schema

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!