Hi,
Say DB has three tables: Customer, Order and Products. DAL layer could use just one class ( aka one data access logical component ) to perform CRUD operations on all three tables, or it could use three different classes (aka three different logical components):
1) Customer Data Access Logic Component
2) Order Data Access Logic Component
3) Products Data Access Logic Component
As far as I can tell, the only disadvantage of having three data access logical components ( thus having three classes ) is that BLL layer will need to instantiate(using reflection) three different class instances ( at DAL layer ) instead of just one?!
So what are some pros and cons of:
a) having three data access logical components?
b) having just one data access logical component?
thanx