예제 #1
0
        internal static SQLitePooledConnection GetConnection(SQLiteConnectionSettings settings)
        {
            lock (_lock)
            {
                // find it in the dictionary...
                string key = settings.Key;
                if (!(Connections.ContainsKey(key)))
                {
                    SQLitePooledConnection conn = new SQLitePooledConnection(settings);
                    Connections[key] = conn;
                }

                // return...
                return Connections[key];
            }
        }
예제 #2
0
 internal SQLitePooledConnection(SQLiteConnectionSettings settings)
 {
     this.Settings = settings;
 }