Invalid attempt to Read when reader is closed

前端 未结 3 1065
失恋的感觉
失恋的感觉 2021-01-26 07:35

I\'m working on C# and MySql request. I\'m trying to retrieve my datas in my db but I have this error message : Invalid attempt to Read when reader is closed.

Thanks for

3条回答
  •  一个人的身影
    2021-01-26 08:22

    If I'm not mistaken, it's the using statement that is killing the reader. Once the using block is terminated, IDisposable will fire on your MySQLConnection, closing and disposing your connection to the database.

提交回复
热议问题