コード例 #1
0
ファイル: QQueryBase.cs プロジェクト: git-thinh/limada
 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));
 }
コード例 #2
0
ファイル: QueryPrettyPrinter.cs プロジェクト: danfma/db4o-net
 private static string DirectionString(SodaQueryComparator.Direction direction)
 {
     return(direction.Equals(SodaQueryComparator.Direction.Descending) ? "desc" : "asc");
 }
コード例 #3
0
ファイル: QQueryBase.cs プロジェクト: git-thinh/limada
 private void AddOrdering(SodaQueryComparator.Direction direction)
 {
     AddOrdering(direction, new ArrayList());
 }