Ejemplo n.º 1
0
 public OpicsBusiness()
 {
     try
     {
         if (_oracle == null)
             _oracle = OracleHelper.GetOracleInstance(OracleConnectionString);
     }
     catch (Exception excep)
     {
         LoggingHelper.Debug("Error BaseBusiness: " + excep.Message);
     }
 }
Ejemplo n.º 2
0
        public static OracleHelper GetOracleInstance(string ConnectionString)
        {
            LoggingHelper.Debug("-----Start get instance-----");

            try
            {
                if (OracleHelper.instance == null)
                    OracleHelper.instance = new OracleHelper(ConnectionString);
            }
            catch (Exception ex)
            {
                LoggingHelper.Debug("-----Oracle getInstance Error----");
                LoggingHelper.Debug(ex.Message);
            }
            return OracleHelper.instance;
        }