From: DataLayer D. L. <dat...@li...> - 2006-11-17 23:12:02
|
The Table object uses schema information provided by specific DBMS provider to get column information and creates general Query objects with this meta-data information. The information schema commands need to know the database name of current connection. These commands are being implemented on each data source provider which doesn't maintain fields for each parameter of the connection string. To solve this, I propose to keep parameters on different fields and delegate the connection string building process to the data source specific provider, instead of having it on the DataSourceManager. Each DataBase with his associated DataSource will be configured at run-time by the new DataBaseManager object which will read configuration file and assign each connection parameter to respective fields in the DataSource. DataSource will be responsible for creating IDbConnection objects. Have a nice weekend!! |