EF There is already an open DataReader associated with this Command

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了EF There is already an open DataReader associated with this Command相关的知识,希望对你有一定的参考价值。

捕捉到 System.InvalidOperationException
_HResult=-2146233079
_message=意外的连接状态。在使用包装提供程序时,请确保在已包装的 DbConnection 上实现 StateChange 事件。
HResult=-2146233079

 

解决参考:

https://stackoverflow.com/questions/4867602/entity-framework-there-is-already-an-open-datareader-associated-with-this-comma

https://stackoverflow.com/questions/20693216/there-is-already-an-open-datareader-associated-with-this-connection-which-must-b

以上是关于EF There is already an open DataReader associated with this Command的主要内容,如果未能解决你的问题,请参考以下文章

There is already 'xxxController' bean method

There is already ‘deptController‘ bean method

关于There is already xxx bean method报错的原因

There is a chart instance already initialized on the dom!警告

Caused by: java.lang.IllegalStateException: Ambiguou There is already ‘XXXXXXController‘ bean method

Echarts清空图表:There is a chart instance already initialized on the dom.