Beispiel #1
0
 public bool MoveNext()
 {
     CheckForObjectAlreadyDisposedOrNot(typeof(BaseBatchSeedSelector <TEntity, TId>).FullName);
     if (_currentBatch.IsNullOrEmpty())
     {
         return(false);
     }
     _currentBatchStartPosition = _currentBatch.Max(x => EntityPropertyRangeFilterIdentifier(x));
     _currentBatchStartPosition = _currentBatchStartPosition.Add(ValueToIncrementByToGoToNextBatch);
     if (_maxEntityPropertyRangeFilterIdentifier.IsEqualTo(default(TId)))
     {
         _maxEntityPropertyRangeFilterIdentifier = _seedQueryableRepository.Max(x => EntityPropertyRangeFilterIdentifier(x));
     }
     return(_currentBatchStartPosition.IsLesserThanOrEqualTo(_maxEntityPropertyRangeFilterIdentifier));
 }