Differences between DataTable and DataSet in C #

Source: Internet
Author: User
You can think of a DataTable and a dataset as a data container, such as when you query a database and get some results that you can put in this container,
Then you may ask: I do not use this kind of container, I read the variables or arrays can also be stored up Ah, why the container?


The reason is that this kind of container is more powerful and can be used in addition to saving data.
Example: In a C/s structure of the desktop database system, you can store the query results in front of the container data display to your client interface,
Users in the interface to add, delete, modify the data, you can update the user's operation to the container, and so on, the user has finished, request updates,
And then you update the container's entire data changes to the central database, what are the benefits? is to reduce the database operation, the client speed increased,
The database pressure is reduced.


A dataset can be likened to an in-memory database, a DataTable is an in-memory data table, and a dataset can store multiple DataTable

Differences between DataTable and DataSet in C #

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.