I have three Tables Customers, Jobs, Orders
I Also have these tables in the a DataSet, which conforms to the same constraints as those in the Database itself.
Originally, my intention was to keep the Data in the DataSet, and create various DataView objects to display this data to the user, and also to perform any required manipulations, which will then obviously be updated back on the database using the .NET TableAdapter methodology.
However, it seems as though DataView objects are only able to operate on a sigle DataTable object.
My question is this: Which is the best way to create data in memory to ensure maintainability and performance.
- Create multiple DataTable objects that contain the denormalized data. This would presumably create copies of the data in memory, but I'm more concerned that there would be issues with updating the database on changes.
- Create some custom Class which acts the way I expected DataView to act, and is also capable of automatically updating the DataSet (and then the database).