示例#1
0
 public override void VisitAfter(CompoundQueryClause query)
 {
     if (!query.IsSubQuery && query.GetType() == typeof(CompoundQuery))
     {
         ((CompoundQuery)query).OrderBy.AddRange(_orderBy);
     }
 }
示例#2
0
 public override void VisitBefore(CompoundQueryClause compoundQuery)
 {
     if (!compoundQuery.IsSubQuery && compoundQuery.GetType() == typeof(CompoundQuery))
     {
         ((CompoundQuery)compoundQuery).OrderBy.Clear();
     }
 }
示例#3
0
 public override void VisitAfter(CompoundQueryClause query)
 {
     if (!query.IsSubQuery && query.GetType() == typeof(CompoundQuery))
     {
         this.GetOrderBy(((CompoundQuery)query).OrderBy);
     }
 }