public void VisitSkipTakeClause(SkipTakeClause skipTakeClause, QueryModel queryModel, int index) { if (skipTakeClause.TakeCount == null) { throw new InvalidOperationException("in limit[skip & take functions] count[take function] should be specified"); } QueryText.AppendFormat(" limit "); if (skipTakeClause != null && skipTakeClause.SkipCount != null) { GetAqlExpression(skipTakeClause.SkipCount, queryModel); QueryText.AppendFormat(" , "); } GetAqlExpression(skipTakeClause.TakeCount, queryModel); }
public void VisitSkipTakeClause(SkipTakeClause skipTakeClause, QueryModel queryModel, int index) { if (skipTakeClause.TakeCount == null) throw new InvalidOperationException("in limit[skip & take functions] count[take function] should be specified"); QueryText.AppendFormat(" limit "); if (skipTakeClause != null && skipTakeClause.SkipCount != null) { GetAqlExpression(skipTakeClause.SkipCount, queryModel); QueryText.AppendFormat(" , "); } GetAqlExpression(skipTakeClause.TakeCount, queryModel); }