I am trying to get a better understanding of the three tiered architecture and would like some help clarifying the interaction between classes and structure.
The Presentation layer - is easy it is simply the front end (pages, winforms, etc...)
The Business Logic Layer - This contains the domain objects i.e Car() which will hold all the properties of a particular car. One object will be created per car.
But would you have functions in here to save, edit or delete the car?
The Data Access Layer - This would presumably contain a class (i.e. SQLProcedureFac tory) that would have functions like ExecuteQuery(), ExecuteProcedur e() & ExecuteNonQuery .
Would you also include in this layer a DA class for each business object i.e. DaCar which has functions like SaveCar(), EditCar, GetCarByID, etc...?
Or would the business object use the SQLProcedureFac tory themselves?
I would like know if a page wants to get a car by id what methods are called in which classes in what order? The same for if page wants to edit a car's data?
Thanks for any help you can give me.
The Presentation layer - is easy it is simply the front end (pages, winforms, etc...)
The Business Logic Layer - This contains the domain objects i.e Car() which will hold all the properties of a particular car. One object will be created per car.
But would you have functions in here to save, edit or delete the car?
The Data Access Layer - This would presumably contain a class (i.e. SQLProcedureFac tory) that would have functions like ExecuteQuery(), ExecuteProcedur e() & ExecuteNonQuery .
Would you also include in this layer a DA class for each business object i.e. DaCar which has functions like SaveCar(), EditCar, GetCarByID, etc...?
Or would the business object use the SQLProcedureFac tory themselves?
I would like know if a page wants to get a car by id what methods are called in which classes in what order? The same for if page wants to edit a car's data?
Thanks for any help you can give me.
Comment