LINQ: There is already an open DataReader associated with this Command which must be closed first

    xiaoxiao2021-08-22  247

    在Linq to SQL和Entity Framework,使用Linq查询数据的时候会出现错误:There is already an open DataReader associated with this Command which must be closed first 。

    解决方案:

    在数据库连接串上添加MultipleActiveResultSets=true。

    本文来自云栖社区合作伙伴“doNET跨平台”,了解相关信息可以关注“opendotnet”微信公众号


    最新回复(0)