This is a mobile optimized page that loads fast, if you want to load the real page, click this text.

Вопрос [Решено] Ошибка с Readerd

DANICH70

Новый участник
11 Апр 2022
16
0
10
Всем привет, скажите плиз, что делать, если пишет "There is already an open DataReader associated with this Connection which must be closed first.". Код вот:
C#:
using (MySqlDataReader readerd = command.ExecuteReader())
            {
                if (readerd.HasRows)
                {
                    readerd.Read();
                    account._id = readerd.GetInt32("id");
                    account._cash = readerd.GetInt32("cash");
                    account._adminlevel = readerd.GetInt32("adminlevel");
                }
            }
 

fightforfood

Участник портала
20 Сен 2021
68
11
52
Ты где вообще увидел словосочетание букв "Readerd"
 

fightforfood

Участник портала
20 Сен 2021
68
11
52
Реакции: Sweets

fightforfood

Участник портала
20 Сен 2021
68
11
52

Дальше думай где ты его до этого открывал