private bool OpenDatabase()
        {
            bool   fnResult         = false;
            string connectionString = ReadDatabaseConnectionStringFromConfig();

            if (connectionString != null)
            {
                if (database == null)
                {
                    database = new OPSPDMDatabase(loggerManager);

                    string paramTraceDB  = this.paramLoader.GetParam(PARAM_TRACE_DB) ?? "FALSE";
                    string paramTraceIMD = this.paramLoader.GetParam(PARAM_TRACE_IMD) ?? "FALSE";

                    database.SetTracerEnabled(paramTraceDB.ToUpper() == "TRUE");
                    database.SetTracerIMDEnabled(paramTraceIMD.ToUpper() == "TRUE");

                    if (database.Open(connectionString))
                    {
                        trace.Write(TraceLevel.Debug, $"Database connection is open: {database.IsOpened()}");
                        database.Init();
                        fnResult = true;
                    }
                }
                else
                {
                    if (database.Open(connectionString))
                    {
                        trace.Write(TraceLevel.Debug, $"Database connection is open: {database.IsOpened()}");
                        fnResult = true;
                    }
                }
            }

            return(fnResult);
        }
 public virtual bool SetDBB(OPSPDMDatabase pDBB)
 {
     m_pDBB = pDBB;
     return(true);
 }