コード例 #1
0
        public bool MoveNext()
        {
            if (!_seekNeeded)
            {
                _pos++;
            }
            if (_keyValueTr.CursorMovedCounter != _prevProtectionCounter)
            {
                _modificationCounter.CheckModifiedDuringEnum(_prevModificationCounter);
            }

            var ret = Seek();

            _prevProtectionCounter = _keyValueTr.CursorMovedCounter;
            return(ret);
        }
コード例 #2
0
ファイル: RelationEnumerator.cs プロジェクト: wikancz/BTDB
        public bool MoveNext()
        {
            if (!_seekNeeded)
            {
                _pos++;
            }
            _keyValueTrProtector.Start();
            if (_keyValueTrProtector.WasInterupted(_prevProtectionCounter))
            {
                _modificationCounter.CheckModifiedDuringEnum(_prevModificationCounter);
                _keyValueTr.SetKeyPrefix(KeyBytes);
            }
            var ret = Seek();

            _prevProtectionCounter = _keyValueTrProtector.ProtectionCounter;
            return(ret);
        }