LINQ: There is already an open DataReader associated with this Command which must be closed first
2009-05-12 12:44
645 查看
在Linq to SQL和Entity Framework,使用Linq查询数据的时候会出现错误:There is already an open DataReader associated with this Command which must be closed first 。
解决方案:
在数据库连接串上添加MultipleActiveResultSets=true。
Fixing the "There is already an open DataReader associated with this Command which must be closed first." exception in Entity Framework
解决方案:
在数据库连接串上添加MultipleActiveResultSets=true。
Fixing the "There is already an open DataReader associated with this Command which must be closed first." exception in Entity Framework
相关文章推荐
- LINQ链接数据库出错(There is already an open DataReader associated with this Command which must be closed first )
- LINQ: There is already an open DataReader associated with this Command which must be closed first
- LINQ: There is already an open DataReader associated with this Command which must be closed first
- 解决"There is already an open DataReader associated with this Command which must be closed first."
- There is already an open DataReader associated with this Command which must be closed first
- There is already an open DataReader associated with this Command which must be closed first." exception in Entity Framework
- Fixing the "There is already an open DataReader associated with this Command which must be closed first." exception in Entity Framework
- 解决"There is already an open DataReader associated with this Command which must be closed first." exception in EF 中
- error 'there is already an open datareader associated with this command which must be closed first'
- "There is already an open DataReader associated with this Command which must be closed first"错误
- There is already an open DataReader associated with this Command which must be closed first的错误解决办法
- EF "There is already an open DataReader associated with this Command which must be closed first."
- MySql: There is already an open DataReader associated with this Command which must be closed first.2/16
- 多线程下,多次操作数据库报错,There is already an open DataReader associated with this Command which must be closed first.
- 关于MultipleActiveResultSets属性导致的There is already an open DataReader associated with this Command which must be closed first的解决方法
- 在实体对象中访问导航属性里的属性值出现异常“There is already an open DataReader associated with this Command which must be closed first”
- 一例发生在cshtml页面中的There is already an open DataReader associated with this Command which must be closed
- There is already an open DataReader associated with this Connection which must be closed first
- There is already an open DataReader associated with this Connection which must be closed first
- There is already an open DataReader associated with this Connection which must be closed first