<p>How much should one DataSet represent? Using the example of an ordering system: While showing your order I also show a list of items similar to one of yours  as well as a list of our most popular items.
While your items are tangled in a web of relationships involving you and your past orders, preferred suppliers, and the various other kinds of information related to you as a client, the other items do not have these same relationships. The set of queries I use to navigate the set of stuff representing you is different than the queries I use for one of these other lists of items.</p>

<p>My inclination is to create different DataSets for different kinds of relationships but then I create ten separate item DataTables and that seems wrong. When I instantiate the larger DataSet even though I am only interested in a small subset that seems wrong, and when I try to pack all of these into one DataSet I have a big messy looking thing with several  items tables next to each other and I am pretty sure that IS wrong.</p>

<p>Maybe I am over-valuing the relationship feature of DataSets or maybe I just need to get over myself, either way I could use some guidance.</p>

[{'answer_id': 36282, 'author': 'rp.', 'author_id': 2536, 'author_profile': 'https://Stackoverflow.com/users/2536', 'pm_score': 2, 'selected': False, 'text': '<p>The DataSet is vastly overrated and overused. Use strongly-typed collections (thank you, generics and automatic properties!). As icing on the cake, you can now even do cool query things against your custom objects with LINQ. </p>\n\n<p>Good Esposito article on datasets versus custom objects:</p>\n\n<p><a href="http://msdn.microsoft.com/en-us/magazine/cc163751.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/magazine/cc163751.aspx</a></p>\n\n<p>Automatic properties:</p>\n\n<p><a href="http://weblogs.asp.net/dwahlin/archive/2007/12/04/c-3-0-features-automatic-properties.aspx" rel="nofollow noreferrer">http://weblogs.asp.net/dwahlin/archive/2007/12/04/c-3-0-features-automatic-properties.aspx</a></p>\n\n<p>LINQ with your objects:</p>\n\n<p><a href="http://blogs.msdn.com/wriju/archive/2006/09/16/linq-custom-object-query.aspx" rel="nofollow noreferrer">http://blogs.msdn.com/wriju/archive/2006/09/16/linq-custom-object-query.aspx</a></p>\n'}, {'answer_id': 36284, 'author': 'Quibblesome', 'author_id': 1143, 'author_profile': 'https://Stackoverflow.com/users/1143', 'pm_score': 2, 'selected': True, 'text': '<p>This is why I don\'t use datasets. If you use strongly-typed datasets you benefit from the strong typing but you pay for it in terms of the time it takes to create one even if you\'re just using part of it and its extensibility in terms of the code base. If you want to modify an existing one and you modify a row definition then this will create "shotgun" breaks in the code base as each definition for adding a new row will have to be modified as it wont compile anymore.</p>\n\n<p>To avoid the above scenario the most sensible approach is to generally give up on sensible re-use. Define a dataset per purpose and per use. However the main issue with this is API use, you end up with dataset that is simliar to another dataset but because it is a different dataset type you have to transform it to use the common API which is both painful and inelegant.</p>\n\n<p>This, plus the fact that strongly typed datasets make your code look horrid (the length of the type declarations) are pretty much the reasons i\'ve given up on datasets and switched to business objects instead. </p>\n'}]
['https://Stackoverflow.com/questions/36262', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3777/']