we use html 5/angular SPA with Webapi at the service which communicates with DAL for dataaccess operations
Layer flow would be:
presentation(html5/angular controllers/service) --> web api --> DAL - -> DB.
we do not have BLL project as such. we are thinking to make DAL as combination of BLL + DAL. And we use DTO objects created through t4 templates and they are used for transfer of data between client and web api and DAL (we dont use EF, we use ADO.Net as underlying provider)
- should we require a seperate BLL project or is it ok to combine BLL and DAL proj? considering it should be testable and extendable.
- as mentioned, DTO objects are used throughout. should we require any model other than DTO to transfer the data between the client and webapi/DAL?
DAL :
public List GetCustomers {} this uses Data access helper classes to get the customers and convert to DTO
above CustomerDAL.GetCustomers is being called by webapi project. At this point of time, any BL of (say. customer) is written in web Api project and sometimes at DAL project. we are thinking to move them to one project for consistency and testability.
any insights on this would be helpful.
See Question&Answers more detail:os