public MsSqlReader(SqlDataReader reader, SqlConnection sqlConnection) { _reader = reader; _sqlConnection = sqlConnection; if (reader.HasRows) { FetchRow(); } else { _currentRow = null; } }
private void FetchRow() { _currentRow = _reader.Read() ? MsSqlReaderRow.Create(_reader) : null; }