在EF中调用存储过程 [英] Call stored procedure in EF
本文介绍了在EF中调用存储过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
尝试在EF中调用sp我遇到以下错误:
Trying to call sp in EF i got the following error:
<br />
The data reader is incompatible with the specified ''EFContext.nameOfSP''. A member of the type, ''Prefix'', does not have a corresponding column in the data reader with the same name.
任何人都可以帮助理解这是什么意思。
can anyone please help to understand what is this mean.
推荐答案
查看http://msdn.microsoft.com/en-us/library/bb386946(v=vs.100).aspx [ ^ ]和http://msdn.microsoft.com/en-us/data/gg699321.aspx [ ^ ]。
干杯
Andi
Check out http://msdn.microsoft.com/en-us/library/bb386946(v=vs.100).aspx[^] and http://msdn.microsoft.com/en-us/data/gg699321.aspx[^].
Cheers
Andi
这篇关于在EF中调用存储过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文