使用数据集优于数据表数组的优势 [英] advantage of using dataset over the array of data tables

查看:164
本文介绍了使用数据集优于数据表数组的优势的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在采访中问了这个问题.在数据表数组上使用数据集的优势是什么?它们的功能有何不同?

Hi,

This question was asked in an interview. Whats the advantage of using dataset over the array of data tables. How does they differ in their features?

推荐答案

我可以立即想到的2个主要优点:

1.数据集基于 Diffgram -一种XML格式,可以跟踪对数据集所做的更改.这在更新/删除时非常有用.

2.您不需要从以前定义数据集中可以存在的表的数量. (与需要的数组定义有关!)

除此之外,它足以满足您使用数据表数组的所有优点,例如快速遍历/查找数据.
2 major advantages that i can think of immediately:

1. Datasets are based on Diffgram - a XML format that can keep track of changes made to the dataset. This is very useful at the time of update/deletes.

2. You don''t need to define the number of tables that can exist in dataset from before. (related to Array defining needed!)

Other than that it suffices all the advantages that you have with Array of datatables like traversing/finding data quickly.


这篇关于使用数据集优于数据表数组的优势的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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