Ejemplo n.º 1
0
        /// <summary>
        /// Create a new SQLite connection manager
        /// </summary>
        public SQLiteConnectionManager()
        {
            // Current instance should be disposed
            if (s_instance != null)
            {
                s_instance.Dispose();
            }

            s_instance = this;
        }
Ejemplo n.º 2
0
        ///// <summary>
        ///// Release the connection
        ///// </summary>
        ///// <param name="databasePath"></param>
        //public void ReleaseConnection(string databasePath)
        //{
        //    Object lockObject = null;
        //    if (!this.m_locks.TryGetValue(databasePath, out lockObject))
        //        return;
        //    else
        //        Monitor.Exit(lockObject);
        //}

        /// <summary>
        /// SQLLiteConnection manager
        /// </summary>
        public SQLiteConnectionManager()
        {
            s_instance = this;
            this.Start();
        }