Ejemplo n.º 1
0
 public static void Initialize(IMultiDatabaseCfg configuration)
 {
     try
     {
         instance = new DatabaseManager();
         foreach (IDatabaseCfg pus in configuration.DatabaseCfgs)
         {
             instance.Databases.Add(new Database(pus, configuration.Configurator));
         }
     }
     catch (Exception ex)
     {
         logger.Error(ex);
     }
 }
Ejemplo n.º 2
0
 public static void ResetInstance()
 {
     instance = null;
 }