Пример #1
0
            public bool MoveNext()
            {
                if (!_shaper._isActive)
                {
                    return(false);
                }
                if (_shaper.StoreRead())
                {
                    try
                    {
                        _shaper.StartMaterializingElement();
                        _shaper.RootCoordinator.ReadNextElement(_shaper);
                    }
                    finally
                    {
                        _shaper.StopMaterializingElement();
                    }

                    // Z.EntityFramework.Classic: QueryResultFilter
                    if (_shaper.RootCoordinator.CurrentWrapper is FilterRemovedEntityWrapper)
                    {
                        return(MoveNext());
                    }

                    return(true);
                }
                Dispose();
                return(false);
            }
            public bool MoveNext()
            {
                try
                {
                    _shaper.StartMaterializingElement();

                    if (!_shaper.StoreRead())
                    {
                        // Reset all collections
                        RootCoordinator.ResetCollection(_shaper);
                        return(false);
                    }

                    MaterializeRow();
                }
                finally
                {
                    _shaper.StopMaterializingElement();
                }

                return(true);
            }
 public bool MoveNext()
 {
     if (!_shaper._isActive)
     {
         return(false);
     }
     if (_shaper.StoreRead())
     {
         try
         {
             _shaper.StartMaterializingElement();
             _shaper.RootCoordinator.ReadNextElement(_shaper);
         }
         finally
         {
             _shaper.StopMaterializingElement();
         }
         return(true);
     }
     Dispose();
     return(false);
 }