Search code examples
c#asp.net3-tier

Is it DataSet/DataTableAdapter can be considered as DAL?


I am doing a system with 3 tier architecture. I have 2 folder named DAL and BLL. Can I put my Dataset.xsd file in DAL folder and consider it as a that data access layer. Or is it wrong according to real world situation?


Solution

  • DAL is anything dealing directly with the data storage and retrieval. In your case, the DataTableAdapter is dealing directly with the data layer and thus is considered DAL - you are correct. BLL will be any business rules or additional functionality that you wish to abstract above the DAL.