与数据读取器相比,使用数据集的最佳方案是什么? [英] What are the best scenarios to use dataset than datareader?

查看:71
本文介绍了与数据读取器相比,使用数据集的最佳方案是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为什么或何时使用数据集而不是datareader?

Why or when to use dataset rather than datareader?

推荐答案

我们不做作业:设置它是有原因的.在这里,您可以考虑自己被告知的内容,并尝试理解它.也可以在那里帮助您的导师识别您的弱点,并将更多的注意力放在补救措施上.

但是,使用您的问题作为搜索字词的Google 会产生很好的结果...

Google:为什么或何时使用数据集而不是数据读取器 [
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

However, a sinble Google using your question as a search term gives good results...

Google: Why or when to use dataset rather than datareader[^]


当您有一张以上的桌子.与前进的阅读器相比,表对随机访问有好处.在今天处理器的速度快到今天结束时,我不知道哪种更快,我认为这取决于您的偏好.
A dataset is better when you have more than one table. A table is good for random access, compared to a reader, which moves forward. At the end of hte day, the speed of processors today, I don''t know which is faster, and I think it comes down to what you prefer.


这篇关于与数据读取器相比,使用数据集的最佳方案是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆