what is actual in business layer ?
-
i wanted to know what is actual in business layer it is only properties or some logic over there
-
i wanted to know what is actual in business layer it is only properties or some logic over there
Business layer can be placed in two locations 1. On client side and 2. On server side. Client side business layer will does all client side logic before sending to service (think the application has both Client and Service) and Server side business layer will deal with logic that is after retrieving data from db or before saving to db. Layer is nothing but a code/project to do certain actions. Also remember a Business Layer must not have any UI related things. If it has, then it is not a business layer. We have to move those UI related things to some other place most probably to Presentation Layer. Also on the other hand, if we have only one Client which deals with DB, then there will be only one BL (a business layer) which goes all logic in here. Hope you understand.
Regards, Ganesh
-
Business layer can be placed in two locations 1. On client side and 2. On server side. Client side business layer will does all client side logic before sending to service (think the application has both Client and Service) and Server side business layer will deal with logic that is after retrieving data from db or before saving to db. Layer is nothing but a code/project to do certain actions. Also remember a Business Layer must not have any UI related things. If it has, then it is not a business layer. We have to move those UI related things to some other place most probably to Presentation Layer. Also on the other hand, if we have only one Client which deals with DB, then there will be only one BL (a business layer) which goes all logic in here. Hope you understand.
Regards, Ganesh
-
i wanted to know what is actual in business layer it is only properties or some logic over there
The business layer defines the rules of the business. So for an accounting application you would expect to see accountancy rules being defined such as VAT rules, stock control rules etc. So yes, you would expect to see logic (rules) being defined in the business layer. One of the goals of n-tier design is that these rules should be completely encapsulated so that they can reused by other applications e.g. your company web site may use these business rules as well as your desktop application. For this reason it is common to find business rules implemented as services such WCF services in an SOA architecture.