예제 #1
0
파일: Central.cs 프로젝트: hnordquist/INCC6
 public bool LoadPersistenceConfig(DBConfig mynewdb)
 {
     pest = new Persistence(Logger(LMLoggers.AppSection.DB), mynewdb);
     DB = new INCCDB();
     lmdb = new LMDB();
     bool there = false;
     try
     {
         there = pest.IsItThere;
         if (!there)
         {
             Console.WriteLine("Database using " + mynewdb.MyDBConnectionString + " unavailable");
             Console.WriteLine(pest.IsItThereStr);
         }
     }
     catch (Exception ex)
     {
         Console.WriteLine("Database unavailable " + ex.Message);
         if (!string.IsNullOrEmpty(pest.IsItThereStr))
             Console.WriteLine(pest.IsItThereStr);
     }
     if (there)
         appctx = LMDB.AppContext;
     return there;
 }
예제 #2
0
파일: Central.cs 프로젝트: tempbottle/INCC6
 public void LoadPersistenceConfig(DBConfig mynewdb)
 {
     pest = new Persistence(Logger(LMLoggers.AppSection.DB), mynewdb);
     DB = new INCCDB();
     DB.Populate(pest);
     lmdb = new ListModeDB.LMDB();
     lmdb.Populate(pest);
     appctx = ListModeDB.LMDB.AppContext;
 }