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

            if (!query.IsSubQuery)
            {
                _orderByInMainQuery.Push(orderingTerm);
            }
        }
예제 #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;
         }
     }
 }
예제 #4
0
 virtual public void VisitAfter(OrderingTerm orderingTerm)
 {
 }
예제 #5
0
 virtual public void VisitBefore(OrderingTerm orderingTerm)
 {
 }
 public override void VisitAfter(OrderingTerm orderingTerm)
 {
 }
예제 #7
0
 public void VisitAfter(OrderingTerm orderingTerm)
 {
     _visitor.VisitAfter(orderingTerm);
 }
예제 #8
0
 public void VisitBefore(OrderingTerm orderingTerm)
 {
     _visitor.VisitBefore(orderingTerm);
 }