This is only a very basic outline need a much more detailed design to be
able to determine potential performance problems.
How do the layers communicate ? What servers will they be located on ?
Comments:
The only thing so far is you look like using the standard .NET DB access.
These have slow updates. In addition .NET select method are effecient only
if you need to get the data in big chunks preferably whole tables which
means you will need lots of memory.
Ben
-----Original Message-----
From: Moderated discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED]]On Behalf Of Eladio Rinc�n
Sent: Tuesday, 15 October 2002 5:12 AM
To: [EMAIL PROTECTED]
Subject: [ADVANCED-DOTNET] Learning to work with layers.
Hello;
I'm learning .NET and trying to develop a well done way to work. I'll try to
explain the way I work and I need your help to correct me.
I'll talk about Data Layer (DL), Bussiness Layer (BL), and Presentation
Layer (PL).
The DL only can be instatiated from BL, never from PL. I do not let the PL
to instantiate DL because (I think) I will never need to do something from
DL without accessing BL.
It more structural to work "only" letting the PL to access the DL thought
the BL. It could be a bit rigid but I think it is the best way to control de
flow of Data. Have you ever needed to access the data just from the DL ?
Could you tell me an example where it could be needed?
In the Data Layer, I have Insert, Update, Delete and Select methods that
access to the Database thow Stored Procedures.
In the Business Layer, I have Insert, Update, Delete and Select methods that
instantiate a DL object in order to operate in the Database. The BL inherits
a typed dataset (may be one day a change to an ordinary dataset). I have
defined aswell in the BL one variable for each field in the DL in order to
(MRDU) in the DL. I prefer to pass the DL the defined variables ( NOT the
Dataset ). My DL fields are VB.NET types: string, long, double, but in the
DL I define the SQL types: sqlstring, sqlinteger, sqlnumeric ... Working in
this way I do not need to "build" the sql type in PL. Is well done?
In the Presentation Layer, I have a module that defines one global variable
for each BL class like:
Private moBLProvincias As BLProvincias
Private moBLPoblaciones As BLPoblaciones
...
Do you have any experience where it does have bad performance? (thinking in
VB6 memory lakes)
Thank you and regards,
Eladio Rinc�n
You can read messages from the Advanced DOTNET archive, unsubscribe from
Advanced DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.
You can read messages from the Advanced DOTNET archive, unsubscribe from Advanced
DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.