0

I know that three tier contain PL , BL and DL.
Working on one, in that application we are

"passing values as parameter from PL into BL and after calculation into DL which perform DB operations."

Is this the right way to implement 3 Tier?

or the one described here in CODEPROJECT

Edit I know There is no "one fits all" layer model. But i want to know which is better

  1. Passing parameters?

  2. Setting get set values of table field?(As in above codeplex example)

syed mohsin
  • 2,948
  • 2
  • 23
  • 47
  • @syed mohsin what you have asked in your question I think it is the better way. Methods Add, Update, Delete should be there in BL and in DL there should be methods like executeNoneQuery or executeScalar that performs database operation. – Dev Jan 02 '13 at 12:53
  • 2
    There is no "one fits all" layer model. It entirely depends on the project and scope, but [Separation of concerns](http://en.wikipedia.org/wiki/Separation_of_concerns) is an often used strategy in complex systems. The classic 3-Tier model is often used as an example in teaching. – Waldfee Jan 02 '13 at 12:55
  • There is no "right way" you need to choose the better solution to your specific need. – Roee Gavirel Jan 02 '13 at 12:59
  • @Adam Robinson: Above there are 2 ways to implement 3 Tier. What is the correct way? – syed mohsin Jan 02 '13 at 13:02

1 Answers1

3

The method mentioned by you is for simple scenario. The Architecture(Tiers) of application can be differ from one user to another user or Organisation. But the process mentioned by you is the basic one.

http://alitarhini.wordpress.com/2011/01/22/concepts-of-three-tier-architecture/

andy
  • 5,979
  • 2
  • 27
  • 49