C# MySQL second DataReader in DataReader while loop

后端 未结 3 533
南旧
南旧 2020-12-18 12:06

As you might have guessed from the title am I trying to do this:

    #region check new nations
    private void checknewnations()
    {
        addtolog(\"se         


        
3条回答
  •  [愿得一人]
    2020-12-18 12:46

    In 2008 connection strings you can have multiple active results sets via MultipleActiveResultSets=true; I've not used mySQL so I'm not sure, but maybe if you are using an ADO provider.

    Otherwise, just make another connection -- don't re-use the same one.

提交回复
热议问题