Mysql connector - MultipleActiveResultSets issue

前端 未结 3 929
鱼传尺愫
鱼传尺愫 2020-12-06 21:12

First off, I have spent hours looking for a fix - maybe I just need another pair of eyes on this problem.

I\'m currently coding a c# application for myself(Personal

3条回答
  •  青春惊慌失措
    2020-12-06 21:21

    The problem is not solved but I have found a work around.

    I removed MultipleActiveResultSets=True; from the connection string. I then created a list where I saved the data from MySqlDataReader, I then closed the reader and reopen a new one which then I got the rest of the data from the database. Then simply merged the results together in the list.

    So yeah, a temp fix.

    If someone knows the proper fix then please comment, otherwise I will be using my temp fix.

    Thanks guys.

提交回复
热议问题