Blacker.MangaScraper.Library.SQLite.SQLiteDALBase.ExecuteDataReader C# (CSharp) Method

ExecuteDataReader() protected method

protected ExecuteDataReader ( SQLiteCommand command, SQLiteConnection connection, System.Data.SQLite.SQLiteTransaction transaction ) : IDataReader
command System.Data.SQLite.SQLiteCommand
connection System.Data.SQLite.SQLiteConnection
transaction System.Data.SQLite.SQLiteTransaction
return IDataReader
        protected IDataReader ExecuteDataReader(SQLiteCommand command, SQLiteConnection connection, SQLiteTransaction transaction)
        {
            if (command == null)
                throw new ArgumentNullException("command");

            if (connection == null)
                throw new ArgumentNullException("connection");

            if (transaction != null && transaction.Connection != connection)
                throw new ArgumentException("Transaction cannot be used with the passed connection.");

            command.Connection = connection;

            if (transaction != null)
            {
                command.Transaction = transaction;
            }
            try
            {
                return command.ExecuteReader();
            }
            catch (SQLiteException ex)
            {
                _log.Error("Unable to perform query.", ex);

                throw new StorageException("Unable to perform query.", ex);
            }
        }

Same methods

SQLiteDALBase::ExecuteDataReader ( SQLiteCommand command, SQLiteConnection connection ) : IDataReader