/// <summary> /// Provides advanced configuration for the behaviour of the class when Exceptions are encountered. /// </summary> /// <param name="connection"></param> /// <param name="exceptionHandler">Deletegate which will receive any caught Exception objects.</param> /// <param name="throwExceptions">Indicate whether a caught exception should be re-thrown.</param> protected Database(IDbConnection connection, DapperLiteException exceptionHandler, bool throwExceptions) { if (connection == null) { throw new ArgumentException("Connection cannot be null"); } m_connection = connection; m_exceptionHandler = exceptionHandler; m_throwExceptions = throwExceptions; }
public SqliteDatabase(SQLiteConnection connection, DapperLiteException exceptionHandler, bool throwExceptions) : base(connection, exceptionHandler, throwExceptions) { }