实体框架未在其他架构上获取列信息 [英] Entity Framework not getting column info on a different schema

查看:61
本文介绍了实体框架未在其他架构上获取列信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在获取不同模式下的列信息时遇到麻烦。

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

在我们更改连接字符串之前,一切正常。

It was working fine until we changed the connection string.

默认架构为[dbo]
,新添加的存储过程位于 different_schema

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

有人在这个问题上知道并有相同的经历吗?

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

在此先感谢您。

推荐答案

在存储过程开始时,临时添加

At the start of the stored proc temporarily add

SET FMTONLY OFF

SET FMTONLY OFF

以获得返回的列信息。

这很好地解释了

This is explained well here

这篇关于实体框架未在其他架构上获取列信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆