示例#1
0
        public MsSqlReader(SqlDataReader reader, SqlConnection sqlConnection)
        {
            _reader        = reader;
            _sqlConnection = sqlConnection;

            if (reader.HasRows)
            {
                FetchRow();
            }
            else
            {
                _currentRow = null;
            }
        }
示例#2
0
 private void FetchRow()
 {
     _currentRow = _reader.Read() ? MsSqlReaderRow.Create(_reader) : null;
 }