Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道我不能将 IDataReader 迭代到最后并回到开头并再次迭代它。那么我应该怎么做才能多次迭代数据呢?
取决于许多因素。您可以关闭并重新打开 DataReader,使用数据适配器将其读入数据集,或创建自己的集合,将其读入并处理该集合。