Jerry,
> Dataset is almost always the worst way to do things, it's designed to be
> very simple to use, by programmers who do not have the skills to use a
> database.
I agree with Scott, I'm not sure where you get your information! As Datasets
is the .NET implementation of the Record Set pattern
http://martinfowler.com/eaaCatalog/recordSet.html. The Record Set pattern is
"An in-memory representation of tabular data". For cases where a Domain
Model Pattern
http://martinfowler.com/eaaCatalog/domainModel.html is
inappropriate, I find the Record Set pattern a perfect fit! There are a
couple of other patterns in Martin's book that I have used also. See Martin
Fowler's book "Patterns of Enterprise Application Architecture" from Addison
Wesley
http://martinfowler.com/books.html#eaa
Also I hope you realize Datasets, in addition to being easy for beginner
developers, have some very advanced and flexibly features, that "programmers
who do not have the skills" would never realize they are there or how to use
them.
For a complete explanation of advanced features of Datasets I would strongly
recommend you read David Sceppa's book "Microsoft ADO.NET - Core Reference"
from MS Press. As it is a good tutorial on ADO.NET as well as a good desk
reference once you know ADO.NET.
Hope this helps
Jay
"Jerry Pisk" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Actually because Dataset has to work with any data structure it is the
least
> optimized class you will ever use (well, maybe there are other, even less
> optimized generic data classes).
>
> Updates through dataset are very simple but also the worst way to do data
> updates. You're a lot better of separating your data logic into its own
> layer and using database constructs such as stored procedures to handle
data
> retrieval and update.
>
> Dataset is almost always the worst way to do things, it's designed to be
> very simple to use, by programmers who do not have the skills to use a
> database.
>
> Jerry
>
> "Scott M." <s-(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> >A DataSet is the way to go. It is a fully optimized class for
disconnected
> > data that supports most database operations for CRUD and is 100% XML
> > friendly.
> >
> >
> > "Beringer" <(E-Mail Removed)> wrote in message
> > news:03_Oc.13272$8G6.5120@fed1read04...
> >> I'm new to the Framework and C# so I ask the following:
> >>
> >> What is better to do when using data? Should data reside in a Dataset
> >> and
> >> be pulled from it or should the data be placed in classes that model
the
> >> dataset and dispose of the Dataset? I suppose if changes are to be
made
> > the
> >> Dataset would be best because then you could simply update the
datastore
> >> when done. What if the data is not changed and simply displayed?
> >>
> >> Thanks in advance,
> >> Eric
> >>
> >>
> >
> >
>
>