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