Exemplo n.º 1
0
 public override void VisitAfter(OrderingTerm orderingTerm)
 {
     if (IsPlaceHolderExpr(orderingTerm.Term))
     {
         orderingTerm.Term = Place((PlaceHolderExpr)orderingTerm.Term);
     }
 }
Exemplo n.º 2
0
        public override void VisitBefore(OrderingTerm orderingTerm)
        {
            var orderBy = (OrderBy)orderingTerm.Parent;
            var query   = (IQuery)orderBy.Parent;

            if (!query.IsSubQuery)
            {
                _orderByInMainQuery.Push(orderingTerm);
            }
        }
Exemplo n.º 3
0
 private void RemoveOrderingTerm(OrderBy orderBy, OrderingTerm orderingTerm)
 {
     for (int i = 0; i < orderBy.Count; ++i)
     {
         if (object.Equals(orderBy[i], orderingTerm))
         {
             orderBy.RemoveAt(i);
             break;
         }
     }
 }
Exemplo n.º 4
0
 virtual public void VisitAfter(OrderingTerm orderingTerm)
 {
 }
Exemplo n.º 5
0
 virtual public void VisitBefore(OrderingTerm orderingTerm)
 {
 }
 public override void VisitAfter(OrderingTerm orderingTerm)
 {
 }
Exemplo n.º 7
0
 public void VisitAfter(OrderingTerm orderingTerm)
 {
     _visitor.VisitAfter(orderingTerm);
 }
Exemplo n.º 8
0
 public void VisitBefore(OrderingTerm orderingTerm)
 {
     _visitor.VisitBefore(orderingTerm);
 }