在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