Beispiel #1
0
 public DataAccess()
 {
     _sqlserver = new SqlServerDatabase(ConfigurationManager.ConnectionStrings["sqlserver"].ConnectionString);
     _oracle = new OracleDatabase(ConfigurationManager.ConnectionStrings["oracle"].ConnectionString);
     _activeDB = _sqlserver;
 }
Beispiel #2
0
 private void CheckConnection()
 {
     if (_oracle.isAlive())
     {
         _activeDB = _oracle;
     }
     else
     {
         _activeDB = _sqlserver;
     }
 }