internal SqliteConnectionWrapper(SQLitePCL.ISQLiteConnection connection, SqliteDateFormats fmt) : base(connection, fmt) { if (connection == null) { throw new ArgumentNullException("connection"); } _sqliteDbConnection = connection; }
public override void Dispose() { _sqliteDbConnection = null; base.Dispose(); }
internal SqliteConnectionWrapper(SQLitePCL.ISQLiteConnection connection, SqliteDateFormats fmt) : base(connection, fmt) { if (connection == null) throw new ArgumentNullException("connection"); _sqliteDbConnection = connection; }
/// <summary> /// Disposes of the SqliteAdoConnection, closing it if it is active. /// </summary> public override void Dispose() { if (_sql != null) _sql.Dispose(); _sql = null; _cryptEngine = null; _sqliteDbConnection = null; base.Dispose(); Close(); }
/////<overloads> ///// Constructs a new SqliteAdoConnection object ///// </overloads> ///// <summary> ///// Default constructor ///// </summary> //public SqliteAdoConnection() // : this("") { //} ///// <summary> ///// Initializes the connection with the specified connection string ///// </summary> ///// <param name="connectionString">The connection string to use on the connection</param> //public SqliteAdoConnection(string connectionString) { // _sql = null; // _connectionState = ConnectionState.Closed; // _connectionString = ""; // _transactionLevel = 0; // _version = 0; // //_commandList = new List<WeakReference>(); // if (connectionString != null) // ConnectionString = connectionString; //} #endregion /// <summary> /// Initializes the connection with the specified SQLite connection /// </summary> /// <param name="connection">The SQLite connection to be wrap as an ADO connection</param> /// <param name="cryptEngine">The cryptographic engine to be used for encryption operations</param> public SqliteAdoConnection(SQLitePCL.ISQLiteConnection connection, IObjectCryptEngine cryptEngine) { if (connection == null) throw new ArgumentNullException("connection"); _sqliteDbConnection = connection; _cryptEngine = cryptEngine; _sql = null; _connectionState = ConnectionState.Closed; _connectionString = ""; _transactionLevel = 0; _version = 0; //_commandList = new List<WeakReference>(); }
internal SqliteBase(SQLitePCL.ISQLiteConnection connection, SqliteDateFormats fmt) : base(fmt) { }
public DatabaseInfo(string fileName) { FileName = fileName; Connection = new SQLitePCL.SQLiteConnection(fileName); }
public override void Dispose() { _sqliteDbConnection = null; base.Dispose(); }
public DatabaseInfo(string fileName) { FileName = fileName; Connection = new SQLitePCL.SQLiteConnection(fileName); }