Ejemplo n.º 1
0
 public SqliteService()
 {
     if (_sqliter == null)
     {
         _sqliter = ServiceProvider.Instance.Get <ISQLiter>();
         _dbc     = _sqliter.DBC();
     }
 }
Ejemplo n.º 2
0
        public SqliteHelper(Config config, Dictionary <string, dynamic> all)
        {
            _config = config;
            _all    = all;

            if (_sqliter == null)
            {
                _sqliter = new SQLiter(new SQLiteConfig {
                    DBName = _config.DefaultLDBName, DBPath = _config.CurrentPath
                });
                _dbc = _sqliter.DBC();
            }
        }