数据读取器与指定的'------'不兼容。类型为“----”的成员在数据读取器中没有相应的具有相同名称的列。 [英] The data reader is incompatible with the specified '------'. A member of the type, '----', does not have a corresponding column in the data reader with the same name.

查看:303
本文介绍了数据读取器与指定的'------'不兼容。类型为“----”的成员在数据读取器中没有相应的具有相同名称的列。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用存储过程与实体框架工作时,我得到以下错误。有人请帮助我 

While using stored procedure with Entity frame work I am getting following Error . Some one Please Help Me 

数据阅读器与指定的"SOME STORED PROCEDURE NAME"不兼容。类型为"COLUMN NAME"的成员在数据读取器中没有相应名称的相应列。

The data reader is incompatible with the specified 'SOME STORED PROCEDURE NAME'. A member of the type, 'COLUMN NAME', does not have a corresponding column in the data reader with the same name.

推荐答案

  I怀疑'COLUMN NAME'不是您正在使用的T-SQL的一部分,并且没有列被称为'COLUMN NAME'。我建议您在SQL Server Managment Studio中运行sproc并查看返回的结果集
 I suspect that 'COLUMN NAME' is not part of the T-SQL that you are using and no column is called  'COLUMN NAME'. I suggest that you run the sproc in SQL Server Managment Studio and look at the returned resultset


这篇关于数据读取器与指定的'------'不兼容。类型为“----”的成员在数据读取器中没有相应的具有相同名称的列。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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