0
Reply

I have scenario that to use different data source at run time hence i just created common interface used Factory Pattern. But my challenge is, each datasource expect different parameters Lets say i have GteData() in the interface, For 1 st datasource, i would pass as GetData(int i) but for the second datasource it would be GetData(int i, string s) Having this, still factory pattern would be preferable or any other alternate solution?

Balakumar S

Balakumar S

6y
165
0
Reply