protected internal virtual Expression VisitSkip(SkipExpression node)
 {
     return(node.Update(
                Visit(node.Source),
                Visit(node.Count)));
 }
Esempio n. 2
0
        private void TranslateSkip(SkipExpression node)
        {
            Translate(node.Source);

            _stages.Add(new BsonDocument("$skip", (int)((ConstantExpression)node.Count).Value));
        }
 private BsonValue TranslateSkip(SkipExpression node)
 {
     var message = "$project or $group only supports Skip when immediately followed by a Take.";
     throw new NotSupportedException(message);
 }
 protected internal virtual Expression VisitSkip(SkipExpression node)
 {
     return node.Update(
         Visit(node.Source),
         Visit(node.Count));
 }
 private void VisitSkip(SkipExpression node)
 {
     Visit(node.Source);
     _stages.Add(new BsonDocument("$skip", node.Count));
 }