B
Byron
I've got a need to allow my application to use a differrent version of a data
access DLL based on a user's selection, or automatically discovered
difference. In particular, I have an application that I want the user to be
able to select the type of data source (Oraqcle, MSSQL, XML, Web Service,
etc) and the application will use the applicable DLL from among the multiple
DLLs provided with minimal coding.
Ideally, I would have a DLL for each of the data sources supported and would
just select one at startup and the code would remain the same for all calls
regardless of the source.
It's currently a 3-tier (GUI, business, data access) application supporting
only Oracle, but I need to support MSSQL, including Compact, as well as XML
files, and Web Services.
Each deployed location would use the data source type of their choice.
So, load the data access DLL at startup, and call it from the business layer
the same, regardless of its type, including static methods.
switch(database_type)
{
case MSSQL:
da = MSSQL.DLL
break;
case Oracle:
da = Oracle.DLL;
break;
}
da.Insert(Person);
da.Save(Person);
Thanks in advance for any suggestions.
access DLL based on a user's selection, or automatically discovered
difference. In particular, I have an application that I want the user to be
able to select the type of data source (Oraqcle, MSSQL, XML, Web Service,
etc) and the application will use the applicable DLL from among the multiple
DLLs provided with minimal coding.
Ideally, I would have a DLL for each of the data sources supported and would
just select one at startup and the code would remain the same for all calls
regardless of the source.
It's currently a 3-tier (GUI, business, data access) application supporting
only Oracle, but I need to support MSSQL, including Compact, as well as XML
files, and Web Services.
Each deployed location would use the data source type of their choice.
So, load the data access DLL at startup, and call it from the business layer
the same, regardless of its type, including static methods.
switch(database_type)
{
case MSSQL:
da = MSSQL.DLL
break;
case Oracle:
da = Oracle.DLL;
break;
}
da.Insert(Person);
da.Save(Person);
Thanks in advance for any suggestions.