So I’ve been trying to better understand the difference between these two but all i can really find info on is the difference between DataSets and DataTables- a single Array can only hold one datatype, whereas from what i can tell, DataTables are basically a generic multidimensional array and it has a 1:1 relationship to the DataSource stored in memory. Is this accurate? are DataTables ‘just’ a generic multidimensional array or am i missing some fundamental difference?
So I’ve been trying to better understand the difference between these two but all
Share
A
DataTablemodels a database table in memory. The type can track changes etc in order to sync with a database. The columns (dimensions) can be referenced either by index or name.A
DataSetcan hold a collection of such tables and the relationships between them (referential integrity constraints).An array doesn’t do any of that.