Пример #1
0
        public MarketPricesDB(ItemsDB a_ItemsDB)
        {
            SQLiteConnectionStringBuilder connectionString = new SQLiteConnectionStringBuilder();

            connectionString.DataSource     = Program.GetCacheFolder() + "MarketPrices_v1.db3";
            m_DbConnection.ConnectionString = connectionString.ConnectionString;
            m_DbConnection.Open();

            m_ItemsDB = a_ItemsDB;

            m_Database = new SQLiteDatabase(m_DbConnection, m_DataSet);
            m_Database.CreateTables();
        }