Exemple #1
0
 public static void Destroy()
 {
     if (_customLexDb != null)
     {
         _customLexDb.RealDispose();
         _customLexDb = null;
     }
 }
Exemple #2
0
        public static DbInstance GetDbInstance()
        {
            if (_customLexDb == null)
            {
#if DEBUG
                _customLexDb = new CustomLexDb("forDebug", "TesT.Db");
#else
               _customLexDb = new CustomLexDb("forRelease", "./");
#endif
                _customLexDb.InitializeIndex();
            }
            return _customLexDb;
        }