473,403 Members | 2,183 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

3-tier approach

can someone explain to me please how to develop a 3-tier project?
Is each of the layers parta of a different dll (class library) project?

Thank you
Oct 12 '06 #1
7 3292
They could be, but most likely, each layer is represented by a class or
series of classes.
"Daniela Roman" <da**********@rogers.comwrote in message
news:uZ**************@TK2MSFTNGP05.phx.gbl...
can someone explain to me please how to develop a 3-tier project?
Is each of the layers parta of a different dll (class library) project?

Thank you

Oct 12 '06 #2

Daniela Roman wrote:
can someone explain to me please how to develop a 3-tier project?
Is each of the layers parta of a different dll (class library) project?

Thank you
Daniela,

There's plenty of material out there on the subject (perhaps my
favorite:
http://msdn.microsoft.com/library/de...tml/BOAGag.asp)

-Jay

Oct 12 '06 #3
Bob
Hi Daniela,
My understanding (And it is only that) is that it is dividing your
functionality into three separate catagories.
i.e. User Interface, Business Logic and DataTransport.
The BL and /or the DT could be separate assemblies but it is not mandatory.
To me it is more about the functionality of the classes that make up the
application.
So...
I usually put all my Database accesses in one class.(DT)
The Business Layer consists of whatever classes are required to make the
application perform its function(s) eg a Widget class is a business layer
object.
Business layer objects interact with the database by having an instantiation
of the DT class.
The UI instantiates and manipulates business layer objects.

eg A widget maintenance application. based on a Database

DT Class contains methods for
WriteNewWidget
GetWidgetList

Business Layer contains
Class Widget
Class Factory (Which has a collection of Widgets)

UI Layer
Form instantiates a Factory object and has a list box which displays the
Factory's Widget Collection.

FWIW
Bob


"Daniela Roman" <da**********@rogers.comwrote in message
news:uZ**************@TK2MSFTNGP05.phx.gbl...
can someone explain to me please how to develop a 3-tier project?
Is each of the layers parta of a different dll (class library) project?

Thank you


Oct 13 '06 #4
Daniel,

You have to create an extra Window services for that running on your server.

The bussiness Tier is communicating with your clients on one side and on the
other side with the data tier.
The dataTier is by instance the SQL Sever. (This is the approach as standard
in ASP.Net).

It is a very difficult method in windows forms. It is easier to go for a
multi layer approach, where the layers are classes that you use in your
program.

However those are than an integrated part of your client programs and in my
opinion not real tiers.

I hope this gives an idea,

Cor

"Daniela Roman" <da**********@rogers.comschreef in bericht
news:uZ**************@TK2MSFTNGP05.phx.gbl...
can someone explain to me please how to develop a 3-tier project?
Is each of the layers parta of a different dll (class library) project?

Thank you

Oct 13 '06 #5
AAJ
Hi Cor

I suppose its down to the terminology of tier and layer. I have found that
lots of people use tier and layer Interchangeably.

I dont know if its of any use for Daniela, but I found

http://www.asp.net/learn/dataaccess/....aspx?tabid=63

to be a really good starting point particularly for .NET ( although they
class it as Tier rather than layer)

Personally, I have a physical database layer (which I suppose is a tier)
then a Data access Layer, a Business layer and a user layer (which I suppose
are all in one tier), and certainly for the smaller projects I've been
working on, they all exist in one project. I'm not sure how the bigger
companies arrange theirs though.
Andy

"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:uj**************@TK2MSFTNGP03.phx.gbl...
Daniel,

You have to create an extra Window services for that running on your
server.

The bussiness Tier is communicating with your clients on one side and on
the other side with the data tier.
The dataTier is by instance the SQL Sever. (This is the approach as
standard in ASP.Net).

It is a very difficult method in windows forms. It is easier to go for a
multi layer approach, where the layers are classes that you use in your
program.

However those are than an integrated part of your client programs and in
my opinion not real tiers.

I hope this gives an idea,

Cor

"Daniela Roman" <da**********@rogers.comschreef in bericht
news:uZ**************@TK2MSFTNGP05.phx.gbl...
>can someone explain to me please how to develop a 3-tier project?
Is each of the layers parta of a different dll (class library) project?

Thank you


Oct 13 '06 #6

Daniela,

http://sholliday.spaces.live.com/?_c...26ayear%3d2006
5/24/2006
http://sholliday.spaces.live.com
Custom Objects/Collections and Tiered Development
This blog entry will actually bring some code samples and implementation to
all the tutorials out there.

And show some common mistakes.

I do interviews for my company, and alot of people know the key words and
some concepts, but coding it up well is a little different sometimes.

At the bottom of that blog entry is:
And a reference to read from start to finish, aka, very informative for a
bird's eye view:
*
http://msdn.microsoft.com/library/de...tml/BOAGag.asp

I have that bookmarked, and if you just getting into it, I'd read that thing
once a month for the next 4 or 5 months.

..........................

If you're doing 2.0 development, there is a June 2006 blog entry also.


"Daniela Roman" <da**********@rogers.comwrote in message
news:uZ**************@TK2MSFTNGP05.phx.gbl...
can someone explain to me please how to develop a 3-tier project?
Is each of the layers parta of a different dll (class library) project?

Thank you


Oct 13 '06 #7
than you

Oct 14 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Chinook | last post by:
OO approach to decision sequence? --------------------------------- In a recent thread (Cause for using objects?), Chris Smith replied with (in part): > If your table of photo data has...
2
by: R0bert Neville | last post by:
I have been working a rounded content box approach. The layout rendered beautifully in Firefox, yet IE threw a wrench into my layout. The approach has to be re-thought and aligned for compatibility...
2
by: Rene | last post by:
Hi, In my VB6 application I'm using a class/object that is using full-async ADO. I can start multiple queries, the class stores the ADODB.Recordset object in an array and waits for the...
16
by: Robert Zurer | last post by:
Can anyone suggest the best book or part of a book on this subject. I'm looking for an in-depth treatment with examples in C# TIA Robert Zurer robert@zurer.com
1
by: Craig Kenisston | last post by:
Hi, I'm developing my first asp.net application. It will be a small e-commerce site, with product catalogos, shoping cart, etc. I started to develop using a single page, the default.aspx, and...
8
by: Harvey Triana | last post by:
Hello. By example, I have string with a "Hello There". I use Right("Hello There", 3) function in VB.NET to just get "ere" out of the string but there doesn't seem to be one in C#. I have two...
1
by: =?Utf-8?B?Tkg=?= | last post by:
Hi, I have been building asp.net 2.0 apps now for a few years. In general I use MS Ajax and the MS Data Enterprise Application Block to manage the connecting and getting data from the database....
5
by: jehugaleahsa | last post by:
Hello: I am trying to find what is the very best approach to business objects in Windows Forms. Windows Forms presents an awesome opportunity to use DataTables and I would like to continue doing...
20
by: mike3 | last post by:
Hi. (Xposted to both comp.lang.c++ and comp.programming since I've got questions related to both C++ language and general programming) I've got the following C++ code. The first routine runs in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.