jjzjj

historico

全部标签

c# - 使用 2 个不同的命令时出现错误 "There is already an open DataReader associated with this Command which must be closed first"

我有这个遗留代码:privatevoidconecta(){if(conexao.State==ConnectionState.Closed)conexao.Open();}publicListget_dados_historico_verificacao_email_WEB(stringemail){Listhistoricos=newList();conecta();sql=@"SELECT*FROMhistorico_verificacao_emailWHEREnm_email='"+email+@"'ORDERBYdt_verificacao_emailDESC,hr_veri

c# - 使用 2 个不同的命令时出现错误 "There is already an open DataReader associated with this Command which must be closed first"

我有这个遗留代码:privatevoidconecta(){if(conexao.State==ConnectionState.Closed)conexao.Open();}publicListget_dados_historico_verificacao_email_WEB(stringemail){Listhistoricos=newList();conecta();sql=@"SELECT*FROMhistorico_verificacao_emailWHEREnm_email='"+email+@"'ORDERBYdt_verificacao_emailDESC,hr_veri