Esempio n. 1
0
        public SqliteStorage(TableInfo table, string filePath = null)
        {
            _file  = filePath ?? Path.GetTempFileName();
            _table = table;
            _conn  = OpenConnection();
            string sql = String.Format("create table {0} ({1})", TABLE_NAME, ColumnsText);

            _conn.ExecuteNonQuery(sql);

            lock (_storageDirectory)
            {
                _storageDirectory[_file] = this;
            }
        }