Exemplo n.º 1
0
 private void ProcessOrderBy()
 {
     if (this.topLevelOrderingInfo.OrderingExpressions.Count > 0)
     {
         this.queryExpression = RequestQueryParser.OrderBy(this.service, this.queryExpression, this.topLevelOrderingInfo);
         this.orderApplied    = true;
     }
 }
Exemplo n.º 2
0
        private void ProcessFilter()
        {
            string queryStringItem = this.service.OperationContext.Host.GetQueryStringItem("$filter");

            if (!string.IsNullOrEmpty(queryStringItem))
            {
                this.CheckFilterQueryApplicable();
                this.queryExpression = RequestQueryParser.Where(this.service, this.description, this.queryExpression, queryStringItem);
            }
        }