Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > 3-Tier Development

Reply
Thread Tools

3-Tier Development

 
 
Alex Papadimoulis
Guest
Posts: n/a
 
      12-12-2003
Hi Bernardo,

Here are my thoughts:

> I have a class DBObjects that returns the correct ADO.NET object for the
> database im using, since I want my system to be ready for any DBMS.

Watchout for the MPTE Trap (Must Port To Everything). Is there a really a
need to make it be ready for any DBMS? Often times, the answer is really no.
Just because there is a remote possibility that perhaps sometime in the
future a later user of the system may just want to make it run on the Atari
2600 ... doesn't mean it's going to happen. And when it does, it is a lot
more work then just switching the "DATABASE-TO-USE" paramater ...

> Or should I have a userDB class that has all the same properties than user
> and have the load and write methods for the DataBase and make the user

load
> and write methods delegate to the user ones???
> If so I would have two classes almost identically... What should I

Two almost identical classes is just too much code and too complex. No need
for that. Sometimes DataObject classes are needed, sometimes they're just
simple enough that their not needed. I'd go with just one class that does
the CRUD operations.

Good luck, and dont hesitate asking more ?? !
-- Alex Papadimoulis



"Bernardo Heynemann" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Im building a web project manager in ASP.net.
> So im using the 3-tier architecture...
> Im using an interface layer, a business layer and a database access
> layer...
>
> I need an opinion from you more experienced guys.
>
> I then have a user class... This one is obviously a business class.
> My doubt is:
> Do this class make direct access to the DAL (Data Access Layer) and make

all
> the inserts, updates and selects?
> Or should I have a userDB class that has all the same properties than user
> and have the load and write methods for the DataBase and make the user

load
> and write methods delegate to the user ones???
> If so I would have two classes almost identically... What should I
> do?!?!?!??!?!?! heherheheheh kidding... but any help is most welcome!!!
>
> See ya,
> Bernardo Heynemann
>
>



 
Reply With Quote
 
 
 
 
Bernardo Heynemann
Guest
Posts: n/a
 
      12-12-2003
Im building a web project manager in ASP.net.
So im using the 3-tier architecture...
Im using an interface layer, a business layer and a database access
layer...

I need an opinion from you more experienced guys.
I have a class DBObjects that returns the correct ADO.NET object for the
database im using, since I want my system to be ready for any DBMS.
This class is obviously in the database access layer.

I then have a user class... This one is obviously a business class.
My doubt is:
Do this class make direct access to the DAL (Data Access Layer) and make all
the inserts, updates and selects?
Or should I have a userDB class that has all the same properties than user
and have the load and write methods for the DataBase and make the user load
and write methods delegate to the user ones???
If so I would have two classes almost identically... What should I
do?!?!?!??!?!?! heherheheheh kidding... but any help is most welcome!!!

See ya,
Bernardo Heynemann


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Web Application development vs windows client development cabernet123@hotmail.com ASP .Net 0 11-17-2005 12:09 AM
enterprise application development versus traditional software development jrefactors@hotmail.com Java 2 01-15-2005 10:45 PM
enterprise application development versus traditional software development jrefactors@hotmail.com Java 5 01-15-2005 09:08 PM
development environment architecture for ASP.NET development team Akhlaq Khan ASP .Net 4 09-27-2004 01:33 PM
Re: Development best practices and knowing when to exercise control over development Kevin Spencer ASP .Net 2 08-06-2003 09:33 PM



Advertisments