I've used datatables and datasets as a cheap replacement for business
objects where I didn't have the will or time to do the hardwork myself.
That could be either overthinking it, or just taking a shortcut.
Here are a few reasons though of not using inbuilt objects like datasets -
a) You have enough time on your hands to create for yourself the specific
object you need.
b) Certain needs imposed by security, or remotability scenarios.
c) Custom serialization etc. needed.
d) Custom business logic required inside your object.
e) ... etc
- Sahil Malik
http://dotnetjunkies.com/weblog/sahilmalik
"Michael Kellogg" <(E-Mail Removed)> wrote in message
news:Xns95E964C357405mkelloggWEDELIVERcc3@207.46.248.16...
> I have an XML file I've created in another application that contains
> information on files, forms, and job header. My plan is, in my new
> "consumer" app, to read in this data and work with it, ultimately
> producing labels for shipping, etc.
>
> My planned approach is to construct a Dataset with 3 DataTables from this
> data: One table for job header; one table for form info; and one table
> for specific records. Then I want to set up one-to-many relations from
> the top, down.
>
> It's probably the SQL Server programmer in me that I'm taking this
> approach, am I overthinking it? Should I just stick with a flat
> DataTable? Would a collection be a better choice? What benefits will I
> get from the DataRelations? If I set up a DataGrid on my form, can I
> easily display, say, Job Number | Form Code | Record Filename, etc.? In
> other words, if I'm not creating a database on some other server, do I
> benefit by going to the trouble of normalizing the data in this way?
>
> I'd appreciate any comments.
>
> --
> Michael Kellogg