private ICommand Backward(XTablePortable table, ICommand command) { BackwardCommand cmd = (BackwardCommand)command; List <KeyValuePair <IData, IData> > list = table.Backward(cmd.FromKey, cmd.FromKey != null, cmd.ToKey, cmd.ToKey != null).Take(cmd.PageCount).ToList(); return(new BackwardCommand(cmd.PageCount, cmd.FromKey, cmd.ToKey, list)); }
private ICommand Backward(XTablePortable table, ICommand command) { BackwardCommand cmd = (BackwardCommand)command; List<KeyValuePair<IData, IData>> list = table.Backward(cmd.FromKey, cmd.FromKey != null, cmd.ToKey, cmd.ToKey != null).Take(cmd.PageCount).ToList(); return new BackwardCommand(cmd.PageCount, cmd.FromKey, cmd.ToKey, list); }