您的位置:首页 > 运维架构

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐