Beispiel #1
0
 public InformixOdbcDao(string rutaIniFile, string section)
 {
     try
     {
         if (Database == null)
         {
             Database = new InformixOdbcDatabase(DatabaseTools.GetConnectionString(rutaIniFile, section));
         }
     }
     catch (Exception e)
     {
         Database = null; //generar excepcion
     }
 }
Beispiel #2
0
 public InformixOdbcDao(string rutaIniFile, string section)
 {
     try
     {
         if (Database == null)
         {
             Database = new InformixOdbcDatabase(DatabaseTools.GetConnectionString(rutaIniFile, section));
         }
     }
     catch (Exception e)
     {
         ErrorDBLog.Write(e.Message);
         Database = null;
     }
 }
 public InformixOdbcDao()
 {
     try
     {
         if (Database == null)
         {
             Database = new InformixOdbcDatabase(DatabaseTools.GetConnectionString("[OdbcInformixServer]"));
         }
     }
     catch (Exception e)
     {
         ErrorDBLog.Write(e.Message);
         Database = null;
     }
 }