About Three -Tier and N-tier Architecture?
-
what is a data access layer,business logic layer?
-
what is a data access layer,business logic layer?
-
what is a data access layer,business logic layer?
Create a class library - BusinessLogic Create a class library - DataAccess Now, from your UI, use the object model and pass on to BusinessLogic project class. This class is a Business logic class. Do the changes as per your need here. Now, pass on the changed data from business logic class to dataAccess project class. In this class, use ADO.NET and pass on the needed values to Stored Procedure. For getting back data, it will be transferred from DA to BL and then BL to UI layer. Have a look at these, explaination with samples: 3-tier architecture in C#[^] 3-Tier Architecture Examples[^] 3-Tier Architecture in ASP.NET with C#[^]
Sandeep Mewara [My last tip/trick]: Browser back button issue after logout
-
what is a data access layer,business logic layer?
As their name implies it. A data access layer has the responsibility to access data sources (e.g. a data base). Possible implementations of that layer may contain SQL statements. The business logic layer contains all the logic of the domain you're in. It gets the data needed for its business processes by using the functionalities of the data access layer. It doesn't care about how the data is grabbed from a source. The data access layer in contrast is not able to acccess the businnes layer (which lays "above" it).