私は以下のコードを持っています:
if (reader.HasRows)
{
while (reader.Read())
{
DataRow searchedDR = ds.Tables[dr["name"].ToString()].Rows.Find(reader["ID"].ToString());
if (searchedDR != null)
ds.Tables[dr["name"].ToString()].Rows.Remove(searchedDR);
}
}
このコードブロックが正常に実行されると、データリーダー(リーダー)は空になりますか?理由は何ですか?後でこのリーダーで作業する必要があります。解決策は何ですか?