Esempio n. 1
0
        protected bool SourcePrior()
        {
            RemoteMoveData moveData = _cursor.MoveBy(-1, _plan._process.GetProcessCallInfo());

            SetFlags(moveData.Flags);
            _plan._programStatisticsCached = false;
            return(moveData.Flags == CursorGetFlags.None);
        }
Esempio n. 2
0
 /// <summary> Provides a mechanism for navigating the cursor by a specified number of rows. </summary>
 /// <param name='delta'> The number of rows to move by, with a negative value indicating backwards movement. </param>
 /// <returns> A <see cref="RemoteMoveData"/> structure containing the result of the move. </returns>
 public RemoteMoveData MoveBy(int delta, ProcessCallInfo callInfo)
 {
     _plan.Process.ProcessCallInfo(callInfo);
     try
     {
         RemoteMoveData moveData = new RemoteMoveData();
         moveData.Count = _serverCursor.MoveBy(delta, out moveData.Flags);
         return(moveData);
     }
     catch (Exception E)
     {
         throw WrapException(E);
     }
 }