Good point Cor.
I guess my main point was that in general, grouping tables in one dataset
follow the collections methodology throughout the framework and follows the
Local Database metaphor.
Like you mention, there are going to be instances where this doesn't fit. I
should probably have been more articulate about when it would make sense to
have multiple datasets.
In the web example, you use, let's say that you have a bunch of large tables
but only need one or two of them for most of the app and at the end you
needed to write the data to xml as you mention and transfer it to a PDA.
While you could store the whole dataset in session state, you'd invariably
put a whole lot of stuff in SS that you don't need which is a waste of
resources. You could opt to store only the two tables of the dataset that
you'll use all the time in session state, but then you'd need to extract
them from Session variables and add them to one (or in this case) two
separate datasets if you wanted to write them to XML. In this type of
scenario, it may well be easier to use multiple sets and it may also be much
more efficient. I can also think of a few others where it would be simpler
to implement using multiple datasets, no doubt about it.
But on the whole, particularly on desktop apps, you can do most of what
you'll need to do with one dataset. Actually, you can do just about anything
just using one dataset but like you point out, it may not be the most
efficient way or the easiest to code.
The 'exceptions to the rule' would probably be a really good article to
write about ;-).
As always, you have some really good insight and raise some really good
points.
Thanks again,
Bill
--
W.G. Ryan MVP Windows - Embedded
www.devbuzz.com
www.knowdotnet.com
http://www.msmvps.com/williamryan/
"Cor Ligthert" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi Bill,
>
> Do you mind if I have a small note by this.
>
> In my opinion I would not choose for 10 in one when you want to serialize
a
> part of it, because by instance that you want to use it on the Interernet,
> when you have to place it in a session or more of this kind of reasons..
>
> Than I go for the smallest dataset which is possible, which does not
> directly denies what you are writting however it can conflict with that,
> therefore just a note.
>
> Cor
>
>