DAO desing pattern ?
I am still using 4.0 design pattern of DAO.
Now i am trying to create a scenario where as i could call different Data Access object based on my choice and not on data provider.
Like as per Pattern in Action (below), once i set ADO.NET.SqlExpress as provider then it will only access data access object of SqlExpress folder for entire project.
Where as i am trying to do that for some object i could get into Oracle as well as for some into SqlExpress and for few i could get into EntityFramework.
How to make that flexiable so that i can handle all and not depend on only ONE dataprovider?
Like ICustomerDao could be in SqlExpress and IOrderDao Could be in Oracle.
Is it possible? How to design?
Abhishek Ranjan, May 30, 2014