"Steve C. Orr, MCSD" <(E-Mail Removed)> wrote in message news:#(E-Mail Removed)...
> Using a DataSet does not sound unreasonable to me. Has your associate said
> why he thinks it was a bad decision for this particular app? (He likely
> knows more about the project than any of the rest of us in the newsgroups.)
> If the app works within the specified requirements then everyone should be
> satisified.
> Of course there are a number of other approaches you could have used, but I
> can think of none that are obviously better than the one you chose
> (overall).
> A *slightly* better approach *might* have been to use a strongly typed
> dataset
I entertained using typed datasets early on in the process, one of the things that I didn't like was that if the
underlying schema changed, the dataset must be regenerated in order to benefit from the new schema.
The approach I took seems to allow the data provider to determine the content my dataset contains.
I can't help but think to myself that somehow I'm reinventing the wheel here, with a "mini database" and all,
possibly this is why some of my counter parts are confused about the benefits of using the dataset.
A couple nice benefits I noticed.
a.. Personal transaction cache with built in data constraints enforcement. thinking there's a pattern for reuse here;-)
b.. Reduction in network traffic and SQL load by reading system tables only once.
c.. Extremely XML:able, easy serialization to many storage mechanisms, easy to scale.
d.. HasChanges at every level in the dataset object hiearchy is simply wonderful (no more change tracking code).
or a custom object model instead, to more closely match your data
> structure. Then save that into session (or wherever.) But that feels
> almost like nitpicking. Like I said, if it ain't broke, no need to fix it.
>
> --
> I hope this helps,
> Steve C. Orr, MCSD
> http://Steve.Orr.net
>
>
> "alien2_51" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > I was tasked with designing an ASP.NET web application and one of the
> > requirements was a single save button.. The application consisted of
> approx
> > 5 data input screens that affected approximately the same number of data
> > tables in the database, one of the tables required an attachment file that
> > was uploaded from the client via multi part form.. My question to you is
> > this: Given the same requirement (single save) on the same platform what
> > would be the solution you would have recommended..?? FYI... I've already
> > architected, designed, coded and deployed this application it's running in
> a
> > production environment with several hundred users as we speak.. Why would
> I
> > ask such a question then? Basically my design approach is in question by
> > some folks who have no business let alone the technical savvy to do so and
> I
> > would like you, the professionals, to give me some feedback that will
> > indicate to me one of two things..
> >
> > 1) I'm a dumb ass and have no business designing cutting edge web
> > applications, I should be delivering pizza to real application
> architects..
> > 2) I've learned enough in the 12 yrs. of programming experience I have to
> > make good design decisions and should continue to do so..
> >
> > A little more info about the app: The collection of data input screens
> make
> > up what I'll call a call sheet or customer call... All of the data
> collected
> > until the user presses the save button is considered the call sheet data.
> >
> > Here's a brief description of my design approach...
> > I maintain call sheet data state in a DataSet that can be serialized to
> the
> > disk, database or the session. Session in my case. When the session times
> > out the dataset is persisted to the database so that the user, provide
> they
> > don't close their browser can reconnect with their previous session and
> > continue working seamlessly... Which works wonderfully... The problem
> these
> > folks are having is in my decision to use the DataSet, so I guess that
> where
> > I'd like your opinion mostly... Although, I'll appreciate your opinion in
> > whatever context you'd like to give it.. What other mechanism would have
> > been better suited for this task...??? I personally can think of nothing
> > that would better suit this requirement..
> >
> > Thanks for your input....
> >
> >
>
>