Example #1
0
 protected void AddOrdering(SodaQueryComparator.Direction direction, IList path)
 {
     if (i_field != null)
     {
         path.Add(i_field);
     }
     if (i_parent != null)
     {
         i_parent.AddOrdering(direction, path);
         return;
     }
     string[] fieldPath = ReverseFieldPath(path);
     RemoveExistingOrderingFor(fieldPath);
     Orderings().Add(new SodaQueryComparator.Ordering(direction, fieldPath));
 }
Example #2
0
 private static string DirectionString(SodaQueryComparator.Direction direction)
 {
     return(direction.Equals(SodaQueryComparator.Direction.Descending) ? "desc" : "asc");
 }
Example #3
0
 private void AddOrdering(SodaQueryComparator.Direction direction)
 {
     AddOrdering(direction, new ArrayList());
 }