In my examples, I do not use a strongly typed dataset.
I use objects and collections. (<List> in 2.0)
Instead of a strongly typed dataset, with a Customer (table) and a Orders
(table), I have
public class Customer
public class Order
and Customer has a child collection called
public OrdersCollection AllOrders
I happen to use a DataReader to populate my objects and collections. Since
IDataReader's are better performing than DataSets. (IDataReader's use the
fire_hose model, where you read the records 1 at a time, in a forward only
manner)
Developing those objects and collections takes time. However, for a serious
application, that's probably the way to go.
Using the strongly typed datasets kinda of give you the same functionality.
But its (my take) kind of the po's mans way of doing it.
It works.
For small apps, I use strongly typed datasets. Small, as in, ... I once
wrote an address collector for colleciting addresses after I got engaged.
I used to use strongly typed datasets all the time, but someone showed me
the light on that.
If you download the 1.1 example, you can also check out performance times.
...
//
Who says that a non-layered approach results in spaghetti code?
//
I can't "prove" it to you, I can only tell you thats how I (and alot of
others) feel about it.
Software Engineering is a lifelong process of maturing. When you start
looking at things like Design Patterns (
www.dofactory.com), you
realize that what you thought was great 1 year ago, was not really so great.
When you start figuring out things like the Factory Pattern ... and how you
can make your code smarter.... you look back and go "Geeze...that stuff I
wrote before was pretty deficient".
That's my take. I can't prove it. I can only offer advice.
//
but
would modestly claim that I do not write spaghetti code.
//
Do you ever watch "The Office" on NBC?
There's a guy on there named Jim, (Tim in the British version). Jim is the
cool, does a good job but not too seriously guy... in the office.
Most people .. in their minds .. think "Yeah, I'm like Jim". Because Jim
handles situations with the most coolness and common sense.
And as Jim deals with other people in the office, viewers think "Yeah, I'm
like Jim because I've encountered people like that in my office"
The reality is that there are alot of people watching the The Office, and
they are not and they are really are like:
The insecure, attention needing, boss who thinks he's funnier than sliced
bread.
The butt kissing work nut, always trying to impress the boss.
The no fun anal person, who gets mad everytime somebody tries to have any
fun.
The non vocal good workers, well rounded and pleasant. Not too high above
the radar, not too far below the radar.
3 years ago, I thought I was a really good developer. That I didn't do
stupid stuff. I mean, I could wrap my arms around a business problem and
get it solved.
3 years ago, I could probably see about 1 or 2 levels down the road in my
design process.
Then I worked in a group of very good developers, and realized how deficient
I was. Which got me on the right path toward maturing as a developer.
Now I can see about 3 levels, sometimes, 4 levels down the road. But I am
still deficient.... as I said, its a lifelong process.
My non technical advice is that.. sometimes its hard to be self-aware,
especially in more isolated environments. I'm not trying to attack, I'm
just letting you know as I look back, that's how I feel, mainly because of
the boat I was in myself.
You might want to try looking at the source code of
http://www.eecs.wsu.edu/paint.net/
Paint.NET
That is a pretty well designed application which does some serious stuff.
I'm not omniscient, I'm just offering my advice.
Good luck with your pursuit.
"Alan Silver" <alan-> wrote in message
news:m1+...
> In article <#>, sloan
> <> writes
> >The only thing I do different for "small" versus "enterprise", is that
> >I sometimes create subfolders instead of actual different assemblies.
> <snip>
>
> OK, I admit it, you lost me 
>
> It's when I read stuff like this that I wonder why I need such
> complexity to do simple tasks. Maybe it's my lack of understanding, but
> this all looks very weighty for what it does. You end off saying...
>
> >strong typed datasets (to me anyways) is the po man's business
> >object/collection. They are fine for small projects.
>
> Do I take that to mean that the approach shown in those tutorials is OK?
> I can see the logic and benefit of those, although I'm still not sure
> why I need a BLL. It all looks a whole lot simpler than the stuff you
> wrote before!!
>
> Thanks for the reply, any further help appreciated.
>
> --
> Alan Silver
> (anything added below this line is nothing to do with me)