Exemple #1
0
 public DatabaseImplementUtility GetDatabaseImplementUtility()
 {
     if (_DatabaseUtility == null)
     {
         if (GetDatabaseType() == DATABASE_TYPE.POSTGRESQL)
         {
             _DatabaseUtility = new NpgsqlDatabaseUtility();
         }
         else if (GetDatabaseType() == DATABASE_TYPE.SQLITE)
         {
             _DatabaseUtility = new SqliteDatabaseUtility();
         }
     }
     return(_DatabaseUtility);
 }
Exemple #2
0
 public void SetConnectionConfig(String host, String user, String password, String database, String port)
 {
     _baseDAO         = null;
     _DatabaseUtility = null;
     GetDatabaseDAO().SetConnectionConfig(host, user, password, database, port);
 }