在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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-11
猜你喜欢
  • 2021-09-27
  • 2021-11-04
  • 2022-12-23
  • 2021-07-02
  • 2022-12-23
相关资源
相似解决方案